ConversationClient
interface ConversationClient
Represents a specific conversation.
Types
Functions
Link copied to clipboard
Gets the ConversationEntrys scoped to this conversation.
Link copied to clipboard
abstract fun conversationEntriesPaged(pageSize: Int = DEFAULT_PAGE_SIZE): Flow<Result<PagingData<ConversationEntry>>>
Gets the ConversationEntrys scoped to this conversation.
Link copied to clipboard
Gets the current Conversation for the ConversationClient.
Link copied to clipboard
Sends a read acknowledgement for a ConversationEntry.
Link copied to clipboard
abstract suspend fun retryEntry(conversationEntry: ConversationEntry, preChatFields: List<PreChatField> = emptyList(), hiddenPreChatFields: List<PreChatField> = emptyList()): Result<ConversationEntry>
Re-sends a conversation entry.
Link copied to clipboard
Sends an image attachment file to a conversation.
Link copied to clipboard
Sends a text message to a conversation.
Link copied to clipboard
Sends a PDF attachment file to a conversation.
Link copied to clipboard
Sends a reply to a structured content message.
Link copied to clipboard
Sends a typing event for the current conversation.
Link copied to clipboard
abstract suspend fun submitPreChatData(preChatFields: List<PreChatField> = emptyList(), hiddenPreChatFields: List<PreChatField> = emptyList(), createConversationOnSubmit: Boolean = true): Result<Conversation>
Creates a conversation with a dictionary of Pre-Chat data for routing.
Properties
Link copied to clipboard
A Flow for observing the current conversation. Result.Success.data returns the conversation.
Link copied to clipboard
Link copied to clipboard
A Flow of ConversationEvents for this conversationId.