Conversation
Container for conversation object.
To obtain a Conversation call createConversation, getConversation or get it from collections returned by getMyConversations.
Conversation is a relatively heavy-weight object. It receives state updates from the back-end in real time.
Types
Link copied to clipboard
Represents the various states of the conversation.
Link copied to clipboard
Represents the various statuses of the user with respect to the conversation.
Link copied to clipboard
Builder for preparing new message.
Link copied to clipboard
User's notification level on a conversation.
Link copied to clipboard
Indicates synchronization status for conversation.
Link copied to clipboard
Unsent message which is ready for sending.
Link copied to clipboard
Indicates reason for conversation update.
Functions
Link copied to clipboard
Add a new ConversationListener for this Conversation.
Link copied to clipboard
abstract fun addParticipantByAddress( address: String, proxyAddress: String, attributes: Attributes, listener: StatusListener)
Content copied to clipboard
Add specified non chat participant to this conversation (sms, whatsapp participants etc).
Link copied to clipboard
abstract fun addParticipantByIdentity( identity: String, attributes: Attributes, listener: StatusListener)
Content copied to clipboard
Add the participant with the specified username to this conversation.
Link copied to clipboard
abstract fun advanceLastReadMessageIndex(lastReadMessageIndex: Long, listener: CallbackListener<Long>)
Content copied to clipboard
Increase user last read message index for the conversation.
Link copied to clipboard
Destroy the current conversation.
Link copied to clipboard
Get custom attributes associated with the Conversation.
Link copied to clipboard
Get creator of the conversation.
Link copied to clipboard
Get creation date of the conversation as an ISO 8601 string.
Link copied to clipboard
Get creation date of the conversation.
Link copied to clipboard
Get update date of the conversation as an ISO 8601 string.
Link copied to clipboard
Get update date of the conversation.
Link copied to clipboard
Get friendly name of the conversation.
Link copied to clipboard
Get last message date in the conversation.
Link copied to clipboard
Get last message's index in the conversation.
Link copied to clipboard
abstract fun getLastMessages(count: Int, listener: CallbackListener<List<Message>>)
Content copied to clipboard
Load last messages in conversation.
Link copied to clipboard
Return user last read message index for the conversation.
Link copied to clipboard
Link copied to clipboard
abstract fun getMessageByIndex(index: Long, listener: CallbackListener<Message>)
Content copied to clipboard
Get message object by known index.
Link copied to clipboard
abstract fun getMessagesAfter( index: Long, count: Int, listener: CallbackListener<List<Message>>)
Content copied to clipboard
Fetch at most count messages including and subsequent to the specified index.
Link copied to clipboard
abstract fun getMessagesBefore( index: Long, count: Int, listener: CallbackListener<List<Message>>)
Content copied to clipboard
Fetch at most count messages including and prior to the specified index.
Link copied to clipboard
Get total number of messages in the conversation.
Link copied to clipboard
The current user's notification level on this conversation.
Link copied to clipboard
Get a conversation participant by identity.
Link copied to clipboard
Get a conversation participant by sid.
Link copied to clipboard
Get total number of participants in the conversation roster.
Link copied to clipboard
Obtain an array of participants of this conversation.
Link copied to clipboard
Get update date of the ConversationState
Link copied to clipboard
abstract fun getSynchronizationStatus(): Conversation.SynchronizationStatus
Content copied to clipboard
Get the current synchronization status for conversation.
Link copied to clipboard
Get unique name of the conversation.
Link copied to clipboard
Get number of unread messages in the conversation.
Link copied to clipboard
Join the current user to this conversation.
Link copied to clipboard
Leave this conversation.
Link copied to clipboard
Prepares a new message to send into the conversation.
Link copied to clipboard
Remove all ConversationListeners for this Conversation.
Link copied to clipboard
Remove ConversationListener for this Conversation.
Link copied to clipboard
Removes a message from the conversation.
Link copied to clipboard
abstract fun removeParticipant(participant: Participant, listener: StatusListener)
Content copied to clipboard
Remove specified participant from this conversation.
Link copied to clipboard
abstract fun removeParticipantByIdentity(identity: String, listener: StatusListener)
Content copied to clipboard
Remove the participant with the specified identity from this conversation.
Link copied to clipboard
Mark all messages in conversation as read.
Link copied to clipboard
Mark all messages in conversation as unread.
Link copied to clipboard
abstract fun setAttributes(attributes: Attributes, listener: StatusListener)
Content copied to clipboard
Set attributes associated with this conversation.
Link copied to clipboard
abstract fun setFriendlyName(friendlyName: String, listener: StatusListener)
Content copied to clipboard
Update the friendly name for this conversation.
Link copied to clipboard
abstract fun setLastReadMessageIndex(lastReadMessageIndex: Long, listener: CallbackListener<Long>)
Content copied to clipboard
Set user last read message index for the conversation.
Link copied to clipboard
abstract fun setNotificationLevel(notificationLevel: Any, listener: StatusListener)
Content copied to clipboard
Set the user's notification level for the conversation.
Link copied to clipboard
Update the unique name for this conversation.