ChannelViewControllerConfiguration
@objc(BCHChannelViewControllerConfiguration)
public class ChannelViewControllerConfiguration : NSObject
A class holding the customization available for a ChannelViewController instance.
-
Initialize a
ChannelViewControllerConfigurationinstance with default values. When using this instance theChannelViewControllerwill embed an audio and a videoUIBarButtonItemin its navigation bar. It will use a defaultFormatterto present user information on screen. It will use the default theme as provided byBDKThemeshared instance.Declaration
Swift
@objc public convenience override init() -
Initialize a
ChannelViewControllerConfigurationinstance with the values provided as arguments. It will use a defaultFormatterto present user information on screen. It will use the default theme as provided byBDKThemeshared instance.Declaration
Swift
@objc public convenience init(audioButton: Bool, videoButton: Bool)Parameters
audioButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a voice call.videoButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a video call. -
Initialize a
ChannelViewControllerConfigurationinstance with theBDKUserInfoFetcherinstance provided as argument. When using this instance theChannelViewControllerwill embed an audio and a videoUIBarButtonItemin its navigation bar. It will use theBDKUserInfoFetcherinstance provided as argument and a defaultFormatterto present user information on screen. It will use the default theme as provided byBDKThemeshared instance.Declaration
Swift
@available(*, deprecated, renamed: "init(﹚", message: "The property 'userInfoFetcher' is deprecated. Please use the property 'userInfoFetcher' of BandyerSDK instance instead.") @objc public convenience init(userInfoFetcher: BDKUserInfoFetcher)Parameters
userInfoFetcherThe
BDKUserInfoFetcherinstance used to retrieve user information -
Initialize a
ChannelViewControllerConfigurationinstance with theFormatterinstance provided as argument. When using this instance theChannelViewControllerwill embed an audio and a videoUIBarButtonItemin its navigation bar. It will use theFormatterinstance provided as argument to present user information on screen. It will use the default theme as provided byBDKThemeshared instance.Declaration
Swift
@objc public convenience init(formatter: Formatter)Parameters
formatterThe
Formatterinstance to be used to format user information as the navigation bar title. -
Initialize a
ChannelViewControllerConfigurationinstance with theBDKThemeinstance provided as argument. When using this instance theChannelViewControllerwill embed an audio and a videoUIBarButtonItemin its navigation bar. It will use a defaultFormatterto present user information on screen.Declaration
Swift
@objc public convenience init(theme: BDKTheme)Parameters
themeThe
BDKThemeinstance to be used to render on screen the UI components. -
Initialize a
ChannelViewControllerConfigurationinstance using the values provided as arguments. It will use a defaultFormatterto present user information on screen. It will use the default theme as provided byBDKThemeshared instance.Declaration
Swift
@available(*, deprecated, renamed: "init(audioButton:videoButton:﹚", message: "The property 'userInfoFetcher' is deprecated. Please use the property 'userInfoFetcher' of BandyerSDK instance instead.") @objc public convenience init(audioButton: Bool, videoButton: Bool, userInfoFetcher: BDKUserInfoFetcher?)Parameters
audioButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a voice call.videoButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a video call.userInfoFetcherThe
BDKUserInfoFetcherinstance that is going to be used by theChannelViewControllerto retrieve user information. May be nil. -
Initialize a
ChannelViewControllerConfigurationinstance using the values provided as arguments and a defaultBDKUserInfoFetcherinstance. It will use the default theme as provided byBDKThemeshared instance.Declaration
Swift
@objc public convenience init(audioButton: Bool, videoButton: Bool, formatter: Formatter?)Parameters
audioButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a voice call.videoButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a video call.formatterThe
Formatterinstance to be used to format user information as the navigation bar title. May be nil. -
Initialize a
ChannelViewControllerConfigurationinstance using the values provided as arguments. It will use a defaultFormatterto present user information on screen.Declaration
Swift
@objc public convenience init(audioButton: Bool, videoButton: Bool, theme: BDKTheme?)Parameters
audioButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a voice call.videoButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a video call.themeThe
BDKThemeinstance to be used to render on screen the UI components. May be nil. -
Initialize a
ChannelViewControllerConfigurationinstance with the objects and values provided as arguments. It will use the default theme as provided byBDKThemeshared instance.Declaration
Swift
@available(*, deprecated, renamed: "init(audioButton:videoButton:formatter:﹚", message: "The property 'userInfoFetcher' is deprecated. Please use the property 'userInfoFetcher' of BandyerSDK instance instead.") @objc public convenience init(audioButton: Bool, videoButton: Bool, userInfoFetcher: BDKUserInfoFetcher?, formatter: Formatter?)Parameters
audioButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a voice call.videoButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a video call.userInfoFetcherThe
BDKUserInfoFetcherinstance that is going to be used by theChannelViewControllerto retrieve user information. May be nil.formatterThe
Formatterinstance to be used to format user information as the navigation bar title. May be nil. -
Initialize a
ChannelViewControllerConfigurationinstance with the objects and values provided as arguments.Declaration
Swift
@objc public convenience init(audioButton: Bool, videoButton: Bool, formatter: Formatter?, theme: BDKTheme?)Parameters
audioButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a voice call.videoButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a video call.formatterThe
Formatterinstance to be used to format user information as the navigation bar title. May be nil.themeThe
BDKThemeinstance to be used to render on screen the UI components. May be nil. -
Initialize a
ChannelViewControllerConfigurationinstance with the objects and values provided as arguments.Declaration
Swift
@available(*, deprecated, renamed: "init(audioButton:videoButton:formatter:theme:﹚", message: "The property 'userInfoFetcher' is deprecated. Please use the property 'userInfoFetcher' of BandyerSDK instance instead.") @objc public init(audioButton: Bool, videoButton: Bool, userInfoFetcher: BDKUserInfoFetcher?, formatter: Formatter?, theme: BDKTheme?)Parameters
audioButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a voice call.videoButtonA boolean flag indicating whether the
ChannelViewControllermust embed or not a button the user can touch to start a video call.userInfoFetcherThe
BDKUserInfoFetcherinstance that is going to be used by theChannelViewControllerto retrieve user information. May be nil.formatterThe
Formatterinstance to be used to format user information as the navigation bar title. May be nil.themeThe
BDKThemeinstance to be used to render on screen the UI components. May be nil.
View on GitHub
ChannelViewControllerConfiguration Class Reference