BDKCallViewController

Objective-C


@interface BDKCallViewController : UIViewController

Swift

class CallViewController : UIViewController

A view controller showing the user interface for the intent provided. You should present this view controller modally.

Remark: You must provide an intent before the view controller’s view is loaded.

  • The view controller’s delegate.

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<BDKCallViewControllerDelegate> delegate;

    Swift

    @IBOutlet weak var delegate: CallViewControllerDelegate? { get set }
  • Sets the view controller configuration to be used.

    Remark: The configuration argument provided is copied. Throws: throws an NSInternalInconsistencyException if this method is called after the view has been loaded.

    Declaration

    Objective-C

    - (void)setConfiguration:
        (nonnull BDKCallViewControllerConfiguration *)configuration;

    Swift

    func setConfiguration(_ configuration: BDKCallViewControllerConfiguration)

    Parameters

    configuration

    The view controller configuration to be used.

  • Starts processing the intent provided as argument. You must provide an intent to be processed before the view is loaded.

    Throws: an NSInvalidArgumentException if an unknown intent is provided as argument. Throws: an NSInvalidArgumentException if an intent has been already provided.

    Declaration

    Objective-C

    - (void)handleIntent:(nonnull id<BDKIntent>)intent;

    Swift

    func handle(intent: BDKIntent)

    Parameters

    intent

    The intent object to be handled by the receiver.

  • Handles a Siri INStartVideoCallIntent. This intent is going to be provided by the system when CallKit is enabled and the user taps on the video button in the system call UI. In order to handle the request from the user you must send the intent received, to the view controller.

    Declaration

    Objective-C

    - (void)handleINStartVideoCallIntent:(nonnull INStartVideoCallIntent *)intent;

    Swift

    func handle(startVideoCallIntent intent: INStartVideoCallIntent)

    Parameters

    intent

    The INStartVideoCallIntent received in your AppDelegate.

  • Handles a Siri INStartCallIntent. This intent is going to be provided by the system when CallKit is enabled and the user taps on the video button in the system call UI. In order to handle the request from the user you must send the intent received, to the view controller.

    Declaration

    Objective-C

    - (void)handleINStartCallIntent:(nonnull INStartCallIntent *)intent;

    Swift

    func handle(startCallIntent intent: INStartCallIntent)

    Parameters

    intent

    The INStartCallIntent received in your AppDelegate.