Conversation

interface Conversation

A user's interaction with AXP, often for a single topic.

Properties

Link copied to clipboard

Optional key/value context information on the dialog. This information might be used to make business decisions on how the dialog is treated. For example, the client application might want to send hints about customer's interest based on the customer's searches or FAQ browsing"

Link copied to clipboard

Unique identifier for the conversation.

Link copied to clipboard

The current Participants in the conversation across all channel types.

Link copied to clipboard
abstract val participantsFlow: StateFlow<Set<Participant>>

Flow to observe for when the set of participants changes across all channel types.

Link copied to clipboard
abstract val session: UserSession

The UserSession that this conversation is part of.

Functions

Link copied to clipboard

For Java applications that can't directly observe a Kotlin Flow, use this to register a listener to be called when the set of participants in the conversation changes.

Link copied to clipboard
abstract fun getParticipantById(participantId: ParticipantId): Participant?

Find the Participant in the conversation with the given ID.

Link copied to clipboard
abstract fun participants(channel: AxpChannel): Set<Participant>
Link copied to clipboard

Stop listening for changes to the set of participants.