BDKCallViewControllerDelegate

Objective-C

@protocol BDKCallViewControllerDelegate <NSObject>

Swift

protocol CallViewControllerDelegate : NSObjectProtocol

Represents the delegate of a BDKCallViewController instance. BDKCallViewController instances will notify their delegate when they have finished handling a call and they are ready to be dismissed.

  • Invoked when the view controller has finished handling a call, and it is ready to be dismissed.

    Declaration

    Objective-C

    - (void)callViewControllerDidFinish:(nonnull BDKCallViewController *)controller;

    Swift

    func callViewControllerDidFinish(_ controller: CallViewController)

    Parameters

    controller

    The view controller.

  • Invoked when the user has pressed the back button, and the view controller is ready to be dismissed.

    Declaration

    Objective-C

    - (void)callViewControllerDidPressBack:
        (nonnull BDKCallViewController *)controller;

    Swift

    func callViewControllerDidPressBack(_ controller: CallViewController)

    Parameters

    controller

    The view controller.

  • Invoked when the view controller is trying to start a chat.

    Declaration

    Objective-C

    - (void)callViewController:(nonnull BDKCallViewController *)controller
                  openChatWith:(nonnull NSString *)participantId;

    Swift

    func callViewController(_ controller: CallViewController, openChatWith participantId: String)

    Parameters

    controller

    The view controller.

    participantId

    The counterpart id.

  • Deprecated

    Use shouldShowFeedback instead.

    This method is DEPRECATED, use shouldShowFeedback instead.

    Declaration

    Objective-C

    - (BOOL)shouldShowRatingDialog;

    Swift

    optional func shouldShowRatingDialog() -> Bool

    Return Value

    YES if the feedback dialog must be presented, NO otherwise.

  • Invoked when the call handled by this view controller has finished. The CallViewController will ask its delegate if it should show the feedback dialog or not. If the isFeedbackEnabled property in theBDKCallViewControllerConfiguration object is false, the feedback dialog won’t be presented regardless of what this method returns.

    Declaration

    Objective-C

    - (BOOL)shouldShowFeedback;

    Swift

    optional func shouldShowFeedback() -> Bool

    Return Value

    YES if the feedback dialog must be presented, NO otherwise.