Conversation
interface Conversation
Content copied to clipboard
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
Conversation State
Link copied to clipboard
enum ConversationState
Content copied to clipboard
Represents the various states of the conversation.
Conversation Status
Link copied to clipboard
enum ConversationStatus
Content copied to clipboard
Represents the various statuses of the user with respect to the conversation.
Message Builder
Link copied to clipboard
interface MessageBuilder
Content copied to clipboard
Builder for preparing new message.
Notification Level
Link copied to clipboard
enum NotificationLevel
Content copied to clipboard
User's notification level on a conversation.
Synchronization Status
Link copied to clipboard
enum SynchronizationStatus
Content copied to clipboard
Indicates synchronization status for conversation.
Unsent Message
Link copied to clipboard
interface UnsentMessage
Content copied to clipboard
Unsent message which is ready for sending.
Update Reason
Link copied to clipboard
enum UpdateReason
Content copied to clipboard
Indicates reason for conversation update.
Functions
add Listener
Link copied to clipboard
Add a new ConversationListener for this Conversation.
add Participant By Address
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).
add Participant By Identity
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.
advance Last Read Message Index
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.
destroy
Link copied to clipboard
Destroy the current conversation.
get Attributes
Link copied to clipboard
Get custom attributes associated with the Conversation.
get Created By
Link copied to clipboard
Get creator of the conversation.
get Date Created
Link copied to clipboard
Get creation date of the conversation as an ISO 8601 string.
get Date Created As Date
Link copied to clipboard
Get creation date of the conversation.
get Date Updated
Link copied to clipboard
Get update date of the conversation as an ISO 8601 string.
get Date Updated As Date
Link copied to clipboard
Get update date of the conversation.
get Friendly Name
Link copied to clipboard
Get friendly name of the conversation.
get Last Message Date
Link copied to clipboard
Get last message date in the conversation.
get Last Message Index
Link copied to clipboard
Get last message's index in the conversation.
get Last Messages
Link copied to clipboard
abstract fun getLastMessages(count: Int, listener: CallbackListener<List<Message>>)
Content copied to clipboard
Load last messages in conversation.
get Last Read Message Index
Link copied to clipboard
Return user last read message index for the conversation.
get Limits
Link copied to clipboard
get Message By Index
Link copied to clipboard
abstract fun getMessageByIndex(index: Long, listener: CallbackListener<Message>)
Content copied to clipboard
Get message object by known index.
get Messages After
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.
get Messages Before
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.
get Messages Count
Link copied to clipboard
Get total number of messages in the conversation.
get Notification Level
Link copied to clipboard
The current user's notification level on this conversation.
get Participant By Identity
Link copied to clipboard
Get a conversation participant by identity.
get Participant By Sid
Link copied to clipboard
Get a conversation participant by sid.
get Participants Count
Link copied to clipboard
Get total number of participants in the conversation roster.
get Participants List
Link copied to clipboard
Obtain an array of participants of this conversation.
get State
Link copied to clipboard
Get activity state of this conversation.
get State Date Updated As Date
Link copied to clipboard
Get update date of the ConversationState
get Status
Link copied to clipboard
Get the current user's participation status on this conversation.
get Synchronization Status
Link copied to clipboard
abstract fun getSynchronizationStatus(): Conversation.SynchronizationStatus
Content copied to clipboard
Get the current synchronization status for conversation.
get Unique Name
Link copied to clipboard
Get unique name of the conversation.
get Unread Messages Count
Link copied to clipboard
Get number of unread messages in the conversation.
join
Link copied to clipboard
Join the current user to this conversation.
leave
Link copied to clipboard
Leave this conversation.
prepare Message
Link copied to clipboard
Prepares a new message to send into the conversation.
remove All Listeners
Link copied to clipboard
abstract fun removeAllListeners()
Content copied to clipboard
Remove all ConversationListeners for this Conversation.
remove Listener
Link copied to clipboard
Remove ConversationListener for this Conversation.
remove Message
Link copied to clipboard
Removes a message from the conversation.
remove Participant
Link copied to clipboard
abstract fun removeParticipant(participant: Participant, listener: StatusListener)
Content copied to clipboard
Remove specified participant from this conversation.
remove Participant By Identity
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.
set All Messages Read
Link copied to clipboard
Mark all messages in conversation as read.
set All Messages Unread
Link copied to clipboard
Mark all messages in conversation as unread.
set Attributes
Link copied to clipboard
abstract fun setAttributes(attributes: Attributes, listener: StatusListener)
Content copied to clipboard
Set attributes associated with this conversation.
set Friendly Name
Link copied to clipboard
abstract fun setFriendlyName(friendlyName: String, listener: StatusListener)
Content copied to clipboard
Update the friendly name for this conversation.
set Last Read Message Index
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.
set Notification Level
Link copied to clipboard
abstract fun setNotificationLevel(notificationLevel: Conversation.NotificationLevel, listener: StatusListener)
Content copied to clipboard
Set the user's notification level for the conversation.
set Unique Name
Link copied to clipboard
Update the unique name for this conversation.