ChannelViewControllerDelegate
@objc(BCHChannelViewControllerDelegate)
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 touched an in-app touch notification.
Declaration
Swift
@available(*, deprecated, message: "This method is deprecated and will be removed soon. In-app notifications are now handled by the InAppNotificationsCoordinator. Register as a InAppChatNotificationTouchListener on the InAppNotificationsCoordinator instance provided by the SDK singleton instead") @objc(channelViewController:didTouchNotification:) optional func channelViewController(_ controller: ChannelViewController, didTouch notification: ChatNotification)Parameters
controllerThe view controller.
notificationThe
ChatNotificationinstance representing the notification touched by the user. -
Invoked when the user touched the “return to call” bar at the top of the screen. You should respond to this event resuming the call user interface.
Declaration
Swift
@objc(channelViewController:didTouchBanner:) func channelViewController(_ controller: ChannelViewController, didTouch banner: CallBannerView)Parameters
controllerThe view controller.
bannerThe
CallBannerViewinstance touched by the user. -
Invoked when the “return to call” bar at the top of the screen is about to be hidden.
Declaration
Swift
@objc optional func channelViewController(_ controller: ChannelViewController, willHide banner: CallBannerView)Parameters
controllerThe view controller.
bannerThe
CallBannerViewinstance that is going to be hidden. -
Invoked when the “return to call” bar at the top of the screen is about to show.
Declaration
Swift
@objc optional func channelViewController(_ controller: ChannelViewController, willShow banner: CallBannerView)Parameters
controllerThe view controller.
bannerThe
CallBannerViewinstance that is going to show. -
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