CallViewControllerDelegate
@available(iOS 12.0, *)
@objc(BDKCallViewControllerDelegate)
public protocol CallViewControllerDelegate : NSObjectProtocol
Represents the delegate of a CallViewController instance.
CallViewController 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
Swift
@objc(callViewControllerDidFinish:) 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
Swift
@objc(callViewControllerDidPressBack:) func callViewControllerDidPressBack(_ controller: CallViewController)Parameters
controllerThe view controller.
-
Invoked when the view controller is trying to start a chat.
Declaration
Swift
@objc(callViewController:openChatWith:) func callViewController(_ controller: CallViewController, openChatWith participantId: String)Parameters
controllerThe view controller.
participantIdThe counterpart id.
-
Invoked when the view controller will change its presentation mode
Declaration
Swift
@objc(callViewController:willChangePresentationModeFrom:to:) optional func callViewController(_ controller: CallViewController, willChangePresentationModeFrom oldValue: CallViewControllerPresentationMode, to newValue: CallViewControllerPresentationMode)Parameters
controllerThe view controller.
oldValueThe old presentation mode
newValueThe new presentation mode
-
Invoked when the view controller did change its presentation mode
Declaration
Swift
@objc(callViewController:didChangePresentationModeFrom:to:) optional func callViewController(_ controller: CallViewController, didChangePresentationModeFrom oldValue: CallViewControllerPresentationMode, to newValue: CallViewControllerPresentationMode)Parameters
controllerThe view controller.
oldValueThe old presentation mode
newValueThe new presentation mode
-
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 theCallViewControllerConfigurationobject is false, the feedback dialog won’t be presented regardless of what this method returns.Declaration
Swift
@objc(shouldShowFeedback) optional func shouldShowFeedback() -> BoolReturn Value
true if the feedback dialog must be presented, false otherwise.
View on GitHub
CallViewControllerDelegate Protocol Reference