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
controllerThe 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
controllerThe 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
controllerThe view controller.
participantIdThe counterpart id.
-
Deprecated
Use shouldShowFeedback instead.
This method is DEPRECATED, use
shouldShowFeedbackinstead.Declaration
Objective-C
- (BOOL)shouldShowRatingDialog;Swift
optional func shouldShowRatingDialog() -> BoolReturn 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
isFeedbackEnabledproperty in theBDKCallViewControllerConfigurationobject is false, the feedback dialog won’t be presented regardless of what this method returns.Declaration
Objective-C
- (BOOL)shouldShowFeedback;Swift
optional func shouldShowFeedback() -> BoolReturn Value
YES if the feedback dialog must be presented, NO otherwise.
View on GitHub
BDKCallViewControllerDelegate Protocol Reference