OpenChatIntent
@objc(BDKOpenChatIntent)
public class OpenChatIntent : NSObject, Intent
Represents the intent of starting a chat.
-
The intent unique identifier.
Declaration
Swift
public let uuid: UUID
-
Generates a new
OpenChatIntent
instance from the parameter provided.Declaration
Swift
@objc public static func openChat(from notification: ChatNotification) -> OpenChatIntent?
Parameters
notification
The
ChatNotification
instance from which open a chat. -
Instantiate a new
OpenChatIntent
instance encapsulating the intent of opening a chat for the channelId providedDeclaration
Swift
@objc public static func openChat(channelId: String) -> OpenChatIntent
Parameters
channelId
The channelId
-
Generates a new
OpenChatIntent
instance from the parameter provided.Declaration
Swift
@objc public static func openChat(with participant: String) -> OpenChatIntent
Parameters
participant
The counterpart id.