ChannelViewControllerConfiguration

@objc(BCHChannelViewControllerConfiguration)
public class ChannelViewControllerConfiguration : NSObject

A class holding the customization available for a ChannelViewController instance.

  • Initialize a ChannelViewControllerConfiguration instance with default values. When using this instance the ChannelViewController will embed an audio and a video UIBarButtonItem in its navigation bar. It will use a default BDKUserInfoFetcher and a default Formatter to present user information on screen.

    Declaration

    Swift

    @objc
    public convenience override init()
  • Initialize a ChannelViewControllerConfiguration instance with the BDKUserInfoFetcher instance provided as argument. When using this instance the ChannelViewController will embed an audio and a video UIBarButtonItem in its navigation bar. It will use theBDKUserInfoFetcherinstance provided as argument and a default Formatter to present user information on screen.

    Declaration

    Swift

    @objc
    public convenience init(userInfoFetcher: BDKUserInfoFetcher)

    Parameters

    userInfoFetcher

    The BDKUserInfoFetcher instance used to retrieve user information

  • Initialize a ChannelViewControllerConfiguration instance with the Formatter instance provided as argument. When using this instance the ChannelViewController will embed an audio and a video UIBarButtonItem in its navigation bar. It will use a defaultBDKUserInfoFetcherinstance and the Formatter instance provided as argument to present user information on screen.

    Declaration

    Swift

    @objc
    public convenience init(formatter: Formatter)

    Parameters

    formatter

    The Formatter instance to be used to format user information as the navigation bar title.

  • Initialize a ChannelViewControllerConfiguration instance with the objects and values provided as arguments.

    Declaration

    Swift

    @objc
    public init(audioButton: Bool, videoButton: Bool, userInfoFetcher: BDKUserInfoFetcher?, formatter: Formatter?)

    Parameters

    audioButton

    A boolean flag indicating whether the ChannelViewController must embed or not a button the user can touch to start a voice call.

    videoButton

    A boolean flag indicating whether the ChannelViewController must embed or not a button the user can touch to start a video call.

    userInfoFetcher

    The BDKUserInfoFetcher instance that is going to be used by the ChannelViewController to retrieve user information. May be nil.

    formatter

    The Formatter instance to be used to format user information as the navigation bar title. May be nil.

  • Initialize a ChannelViewControllerConfiguration instance using the values provided as arguments and a default Formatter.

    Declaration

    Swift

    @objc
    public convenience init(audioButton: Bool, videoButton: Bool, userInfoFetcher: BDKUserInfoFetcher?)

    Parameters

    audioButton

    A boolean flag indicating whether the ChannelViewController must embed or not a button the user can touch to start a voice call.

    videoButton

    A boolean flag indicating whether the ChannelViewController must embed or not a button the user can touch to start a video call.

    userInfoFetcher

    The BDKUserInfoFetcher instance that is going to be used by the ChannelViewController to retrieve user information. May be nil.

  • Initialize a ChannelViewControllerConfiguration instance using the values provided as arguments and a default BDKUserInfoFetcher instance.

    Declaration

    Swift

    @objc
    public convenience init(audioButton: Bool, videoButton: Bool, formatter: Formatter?)

    Parameters

    audioButton

    A boolean flag indicating whether the ChannelViewController must embed or not a button the user can touch to start a voice call.

    videoButton

    A boolean flag indicating whether the ChannelViewController must embed or not a button the user can touch to start a video call.

    formatter

    The Formatter instance to be used to format user information as the navigation bar title. May be nil.