ChannelViewControllerDelegate

@available(iOS 12.0, *)
@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

    controller

    The ChannelViewController that must be dismissed.

  • 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 in users parameter array.

    Declaration

    Swift

    func channelViewController(_ controller: ChannelViewController, didTapAudioCallWith users: [String])

    Parameters

    controller

    The view controller.

    users

    An array containing the user ids 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 in users parameter array.

    Declaration

    Swift

    func channelViewController(_ controller: ChannelViewController, didTapVideoCallWith users: [String])

    Parameters

    controller

    The view controller.

    users

    An array containing the user ids the user would like to video call.