ChannelViewControllerDelegate
@objc(BDKChannelViewControllerDelegate)
public protocol ChannelViewControllerDelegate
Represents the ChannelViewController‘s delegate. Classes conforming to this class will be notified by the ChannelViewController
when events occur giving them the chance to react to those events.
-
Invoked when the view controller must be dismissed by the presenting view controller. You should dismiss the presented
ChannelViewController.Declaration
Swift
func channelViewControllerDidFinish(_ controller: ChannelViewController)Parameters
controllerThe
ChannelViewControllerthat must be dismissed. -
Invoked when the user has tapped the “voice call”
UIBarButtonItemembedded in the view controller’s navigation bar. In response to this event, you should start an outgoing voice call with the users provided inusersparameter array.Declaration
Swift
func channelViewController(_ controller: ChannelViewController, didTapAudioCallWith users: [String])Parameters
controllerThe view controller.
usersAn array containing the user aliases the user would like to call.
-
Invoked when the user has tapped the “video call”
UIBarButtonItemembedded in the view controller’s navigation bar. In response to this event, you should start an outgoing video call with the users provided inusersparameter array.Declaration
Swift
func channelViewController(_ controller: ChannelViewController, didTapVideoCallWith users: [String])Parameters
controllerThe view controller.
usersAn array containing the user aliases the user would like to video call.
View on GitHub
ChannelViewControllerDelegate Protocol Reference