ChannelViewControllerDelegate
@objc(BCHChannelViewControllerDelegate)
public protocol ChannelViewControllerDelegate
Represents the delegate of a ChannelViewController
instance.
ChannelViewController
instances will notify their delegate about actions happened to themself.
-
Invoked when the view controller has finished handling a chat, and it is ready to be dismissed.
Declaration
Swift
@objc func channelViewControllerDidFinish(_ controller: ChannelViewController)
Parameters
controller
The view controller.
-
Invoked when the user did press the notification window.
Declaration
Swift
@objc(channelViewController:didTouchNotification:) optional func channelViewController(_ controller: ChannelViewController, didTouch notification: ChatNotification)
Parameters
controller
The view controller.
notification
The
ChatNotification
instance pressed. -
Invoked when the user did press the call banner view.
Declaration
Swift
@objc(channelViewController:didTouchBanner:) func channelViewController(_ controller: ChannelViewController, didTouch banner: CallBannerView)
Parameters
controller
The view controller.
banner
The
CallBannerView
instance pressed. -
Invoked when the call banner view is going 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 hidded. -
Invoked when the call banner view is going to be shown.
Declaration
Swift
@objc optional func channelViewController(_ controller: ChannelViewController, willShow banner: CallBannerView)
Parameters
controller
The view controller.
banner
The
CallBannerView
instance that is going to be shown. -
Invoked when the user did tap the auido call button on navigation bar.
Declaration
Swift
@objc func channelViewController(_ controller: ChannelViewController, didTapAudioCallWith users: [String])
Parameters
controller
The view controller.
users
The list of users to call with.
-
Invoked when the user did tap the video call button on navigation bar.
Declaration
Swift
@objc func channelViewController(_ controller: ChannelViewController, didTapVideoCallWith users: [String])
Parameters
controller
The view controller.
users
The list of users to call with.