OpenChatIntent

@available(iOS 12.0, *)
@objc(BDKOpenChatIntent)
public class OpenChatIntent : NSObject, Intent

Represents the intent of starting a chat.

  • The intent unique identifier.

    Declaration

    Swift

    public let uuid: UUID
  • Creates a new instance from the notification provided.

    Declaration

    Swift

    @objc
    public static func openChat(from notification: ChatNotification) -> OpenChatIntent?

    Parameters

    notification

    The ChatNotification instance from which open a chat.

  • Creates a new instance encapsulating the intent of opening a chat for the channelId provided

    Declaration

    Swift

    @objc
    public static func openChat(channelId: String) -> OpenChatIntent

    Parameters

    channelId

    The channelId

  • Creates a new instance from the parameter provided.

    Declaration

    Swift

    @objc
    public static func openChat(with participant: String) -> OpenChatIntent

    Parameters

    participant

    The counterpart id.