ChannelViewController
@objc(BCHChannelViewController)
public class ChannelViewController : UIViewController
A view controller showing the “chat” user interface of the current user with 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 otherwise a fatalError will be raised crashing your app.-
The
ChannelViewControllerConfiguration
to be used by this view controller.Declaration
Swift
@objc public var configuration: ChannelViewControllerConfiguration?
-
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 }
-
Convenience initializer
Declaration
Swift
convenience public init()