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
controller
The 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
controller
The 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
controller
The view controller.
participantId
The 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
controller
The view controller.
oldValue
The old presentation mode
newValue
The 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
controller
The view controller.
oldValue
The old presentation mode
newValue
The 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
isFeedbackEnabled
property in theCallViewControllerConfiguration
object is false, the feedback dialog won’t be presented regardless of what this method returns.Declaration
Swift
@objc(shouldShowFeedback) optional func shouldShowFeedback() -> Bool
Return Value
true if the feedback dialog must be presented, false otherwise.