ChannelViewController

@available(iOS 12.0, *)
@objc(BDKChannelViewController)
public class ChannelViewController : UIViewController

A view controller showing the user interface of the chat between the current user and the user specified in the OpenChatIntent provided. This view controller should be presented modally. You should not embed this view controller in a UINavigationController

Remark

You must provide an intent before the view controller’s view is loaded. Any intent provided after the view has loaded will be ignored.
  • The ChannelViewControllerConfigurationused to configure this view controller. You should set a new value before the view is loaded. Setting a value when the view has been loaded already does nothing

    Declaration

    Swift

    @objc
    public var configuration: ChannelViewControllerConfiguration? { get set }
  • The view controller’s delegate.

    Declaration

    Swift

    @objc
    public weak var delegate: ChannelViewControllerDelegate?
  • Starts processing the intent provided as argument. You must provide an intent to be processed before the view is loaded.

    Remark

    You can provide only one non nil intent for each instance of ‘ChannelViewController’. Only the first one will be taken into account, other ones will be discarded.

    Declaration

    Swift

    @objc
    public var intent: OpenChatIntent? { get set }