CallViewControllerConfigurationBuilderObjcAdapter

@available(iOS 12.0, *)
@objc(BDKCallViewControllerConfigurationBuilder)
public class CallViewControllerConfigurationBuilderObjcAdapter : NSObject

A builder that constructs CallViewControllerConfiguration objects.

 BDKTheme * theme = ...;
 NSBundle *bundle = ...;

 BDKCallViewControllerConfiguration *config = BDKCallViewControllerConfigurationBuilder
                                                                              .create()
                                                                              .withCallTheme(theme)
                                                                              .withFileSharingTheme(theme)
                                                                              .withWhiteboardTheme(theme)
                                                                              .withWhiteboardTextEditorTheme(theme)
                                                                              .withFeedbackEnabledUsingThemeAndAutoDismissDelay(theme, 5)
                                                                              .withCustomLocalizationsUsingBundleAndTableName(bundle, @"CallUI")
                                                                              .build();

Remark

This class is meant to be used by Objective-c code. If your app is written in Swift please use the CallViewControllerConfigurationBuilder instead.
  • Call this block when you want to specify the formatter used to format the callees or caller information in the call UI.

    Declaration

    Swift

    @available(*, deprecated, message: "Use withFormatter instead")
    @objc
    public var withCallInfoTitleFormatter: (Formatter) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to specify the formatter used to format the callees or caller information in the call UI.

    Since

    3.5.0

    Declaration

    Swift

    @objc
    public var withFormatter: (Formatter) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to specify the URL for the mp4 video simulating a camera while running in the iOS Simulator.

    iOS Simulators lack support for camera, when testing on a simulator you can provide a fake video that will be sent to the call participants as of a camera stream. The block expects the URL of the mp4 file used when running the application in the simulator.

    Declaration

    Swift

    @objc
    public var withFakeCapturerFileURL: (URL) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to specify the theme instance that is going to be used by CallViewController when presenting the Call UI.

    Declaration

    Swift

    @objc
    public var withCallTheme: (Theme) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to specify the theme instance that is going to be used when presenting the file sharing UI.

    Declaration

    Swift

    @objc
    public var withFileSharingTheme: (Theme) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to specify the theme instance that is going to be used when presenting the whiteboard UI.

    Declaration

    Swift

    @objc
    public var withWhiteboardTheme: (Theme) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to specify the theme instance that is going to be used when presenting the whiteboard text editor UI.

    Declaration

    Swift

    @objc
    public var withWhiteboardTextEditorTheme: (Theme) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to enable the call feedback UI at the end of the call.

    Declaration

    Swift

    @objc
    public var withFeedbackEnabled: () -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to enable the call feedback UI at the end of the call.

    The block expects a Theme instance as parameter used to customise the feedback UI.

    Declaration

    Swift

    @objc
    public var withFeedbackEnabledUsingTheme: (Theme) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to enable the call feedback UI at the end of the call.

    The block expects the delay in seconds after which the feedback UI is automatically dismissed as parameter.

    Declaration

    Swift

    @objc
    public var withFeedbackEnabledUsingAutoDismissDelay: (TimeInterval) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to enable the call feedback UI at the end of the call.

    The block expects a Theme instance as first parameter used to customise the feedback UI. The block expects the delay in seconds after which the feedback UI is automatically dismissed as second parameter.

    Declaration

    Swift

    @objc
    public var withFeedbackEnabledUsingThemeAndAutoDismissDelay: (Theme, TimeInterval) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to override the Bundle and the filename from which localisations strings are retrieved.

    The block expects the Bundle containing the table’s strings file you want to use.

    Declaration

    Swift

    @objc
    public var withCustomLocalizationsUsingBundle: (Bundle) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to override the Bundle and the filename from which localisations strings are retrieved.

    The block expects the Bundle containing the table’s strings file you want to use as first parameter. The block expects the filename from which localisable strings should be retrieved from as second parameter.

    Declaration

    Swift

    @objc
    public var withCustomLocalizationsUsingBundleAndTableName: (Bundle, String) -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Call this method when you want to enable the ringing UI on an incoming call.

    Calling this method will make the ringing UI visible on an incoming call. If CallKit is not enabled calling this method is unnecessary because the ringing UI will be showed anyway.

    Declaration

    Swift

    @objc
    public var withRingingUIEnabled: () -> CallViewControllerConfigurationBuilderObjcAdapter { get }

    Return Value

    self after enabling ringing UI showing.

  • Call this method when you want to the CallViewController to be presented in Picture in picture mode.

    Since

    3.7.0

    Declaration

    Swift

    @objc
    public var withPresentationModePiP: () -> CallViewControllerConfigurationBuilderObjcAdapter { get }

    Return Value

    self after changing CallViewController presentation mode to CallViewControllerPresentationMode.pip

  • Creates and returns an instance of BDKCallViewControllerConfigurationBuilder class.

    Declaration

    Swift

    @objc
    public static var create: () -> CallViewControllerConfigurationBuilderObjcAdapter { get }
  • Creates and returns an instance of CallViewControllerConfiguration class.

    Declaration

    Swift

    @objc
    public var build: () -> CallViewControllerConfiguration { get }