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
controller
The
ChannelViewController
that 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
controller
The view controller.
notification
The
ChatNotification
instance 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
controller
The view controller.
banner
The
CallBannerView
instance 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
controller
The view controller.
banner
The
CallBannerView
instance 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
controller
The view controller.
banner
The
CallBannerView
instance that is going to show. -
Invoked when the user has tapped the “voice call”
UIBarButtonItem
embedded in the view controller’s navigation bar. In response to this event, you should start an outgoing voice call with the users provided inusers
parameter array.Declaration
Swift
func channelViewController(_ controller: ChannelViewController, didTapAudioCallWith users: [String])
Parameters
controller
The view controller.
users
An array containing the user aliases the user would like to call.
-
Invoked when the user has tapped the “video call”
UIBarButtonItem
embedded in the view controller’s navigation bar. In response to this event, you should start an outgoing video call with the users provided inusers
parameter array.Declaration
Swift
func channelViewController(_ controller: ChannelViewController, didTapVideoCallWith users: [String])
Parameters
controller
The view controller.
users
An array containing the user aliases the user would like to video call.