Conversations Client
interface ConversationsClient
Content copied to clipboard
Conversations client - main entry point for the Conversations SDK.
Types
Connection State
Link copied to clipboard
enum ConnectionState
Content copied to clipboard
Represents underlying twilsock connection state.
Conversation Builder
Link copied to clipboard
interface ConversationBuilder
Content copied to clipboard
Helper to create new conversation with provided data.
Log Level
Link copied to clipboard
enum LogLevel
Content copied to clipboard
Log level constants for passing to setLogLevel.
Properties
Link copied to clipboard
interface Properties
Content copied to clipboard
Properties for client initialization configuration
Synchronization Status
Link copied to clipboard
enum SynchronizationStatus
Content copied to clipboard
Represents client initialization status.
Functions
add Listener
Link copied to clipboard
Method to add listener for this Client.
conversation Builder
Link copied to clipboard
abstract fun conversationBuilder(): ConversationsClient.ConversationBuilder
Content copied to clipboard
Get ConversationBuilder to create conversation with options.
create
Link copied to clipboard
open fun create(context: Context, token: String, properties: ConversationsClient.Properties, listener: CallbackListener<ConversationsClient>)
Content copied to clipboard
Creates a new Conversations client instance with a token manager and client properties.
create Conversation
Link copied to clipboard
abstract fun createConversation(friendlyName: String, listener: CallbackListener<Conversation>)
Content copied to clipboard
Create a conversation with friendly name.
get And Subscribe User
Link copied to clipboard
abstract fun getAndSubscribeUser(identity: String, listener: CallbackListener<User>)
Content copied to clipboard
Get user based on user identity and subscribe to real-time updates for this user.
get Connection State
Link copied to clipboard
get Conversation
Link copied to clipboard
abstract fun getConversation(conversationSidOrUniqueName: String, listener: CallbackListener<Conversation>)
Content copied to clipboard
Retrieves a conversation with the specified SID or unique name.
get My Conversations
Link copied to clipboard
Request list of user's joined conversations.
get My Identity
Link copied to clipboard
Get user identity for current user
get Participants By Identity
Link copied to clipboard
abstract fun getParticipantsByIdentity(identity: String): List<Participant>
Content copied to clipboard
Get list of all Conversation participants with a given identity.
get Properties
Link copied to clipboard
Get properties for current client
get Sdk Version
Link copied to clipboard
Returns the version of the Conversations SDK.
get Subscribed Users
Link copied to clipboard
Get a list of currently subscribed User objects.
get Temporary Content Urls For Media
Link copied to clipboard
abstract fun getTemporaryContentUrlsForMedia(media: List<Media>, listener: CallbackListener<Map<String, String>>): CancellationToken
Content copied to clipboard
Get content URLs for all media attachments in the given set using single network request.
get Temporary Content Urls For Media Sids
Link copied to clipboard
abstract fun getTemporaryContentUrlsForMediaSids(mediaSids: List<String>, listener: CallbackListener<Map<String, String>>): CancellationToken
Content copied to clipboard
Get content URLs for all media attachments in the given set using single network request.
handle Notification
Link copied to clipboard
Queue the incoming notification with the conversations library for processing.
is Reachability Enabled
Link copied to clipboard
Get reachability service status.
register FCMToken
Link copied to clipboard
abstract fun registerFCMToken(token: ConversationsClient.FCMToken, listener: StatusListener)
Content copied to clipboard
Register Firebase Messaging token for push notification updates.
remove All Listeners
Link copied to clipboard
abstract fun removeAllListeners()
Content copied to clipboard
Method to remove all listeners from this Client.
remove Listener
Link copied to clipboard
Method to remove listener from this Client.
set Log Level
Link copied to clipboard
Set verbosity level for log messages to be printed to android logcat.
unregister FCMToken
Link copied to clipboard
abstract fun unregisterFCMToken(token: ConversationsClient.FCMToken, listener: StatusListener)
Content copied to clipboard
Unregister from Firebase Messaging updates.
update Token
Link copied to clipboard
Method to update the authentication token for this client.