AWSConnectPersistentChat
Objective-C
@interface AWSConnectPersistentChat
Swift
class AWSConnectPersistentChat
Enable persistent chats. For more information about enabling persistent chat, and for example use cases and how to configure for them, see Enable persistent chat.
-
The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required for persistent chat.
ENTIRE_PAST_SESSION
: Rehydrates a chat from the most recently terminated past chat contact of the specified past ended chat session. To use this type, provide theinitialContactId
of the past ended chat session in thesourceContactId
field. In this type, Amazon Connect determines the most recent chat contact on the specified chat session that has ended, and uses it to start a persistent chat.FROM_SEGMENT
: Rehydrates a chat from the past chat contact that is specified in thesourceContactId
field.
The actual contactId used for rehydration is provided in the response of this API.
Declaration
Objective-C
@property (nonatomic) AWSConnectRehydrationType rehydrationType;
Swift
var rehydrationType: AWSConnectRehydrationType { get set }
-
The contactId from which a persistent chat session must be started.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable sourceContactId;
Swift
var sourceContactId: String? { get set }