OpenChatIntent

@objc(BCHOpenChatIntent)
public class OpenChatIntent : NSObject, BDKIntent

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(with participant: String) -> OpenChatIntent

    Parameters

    participant

    The counterpart id.

  • 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.