Conversations Client
Conversations client - main entry point for the Conversations SDK.
Types
Link copied to clipboard
Represents underlying twilsock connection state.
Link copied to clipboard
Helper to create new conversation with provided data.
Link copied to clipboard
Log level constants for passing to setLogLevel.
Link copied to clipboard
Properties for client initialization configuration
Link copied to clipboard
Represents client initialization status.
Functions
Link copied to clipboard
Method to add listener for this Client.
Link copied to clipboard
abstract fun conversationBuilder(): ConversationsClient.ConversationBuilder
Content copied to clipboard
Get ConversationBuilder to create conversation with options.
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.
Link copied to clipboard
abstract fun createConversation(friendlyName: String, listener: CallbackListener<Conversation>)
Content copied to clipboard
Create a conversation with friendly name.
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.
Link copied to clipboard
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.
Link copied to clipboard
Request list of user's joined conversations.
Link copied to clipboard
Get user identity for current user
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.
Link copied to clipboard
Get properties for current client
Link copied to clipboard
Returns the version of the Conversations SDK.
Link copied to clipboard
Get a list of currently subscribed User objects.
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.
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.
Link copied to clipboard
Queue the incoming notification with the conversations library for processing.
Link copied to clipboard
Get reachability service status.
Link copied to clipboard
abstract fun registerFCMToken(token: ConversationsClient.FCMToken, listener: StatusListener)
Content copied to clipboard
Register Firebase Messaging token for push notification updates.
Link copied to clipboard
Method to remove all listeners from this Client.
Link copied to clipboard
Method to remove listener from this Client.
Link copied to clipboard
Set verbosity level for log messages to be printed to android logcat.
Link copied to clipboard
abstract fun unregisterFCMToken(token: ConversationsClient.FCMToken, listener: StatusListener)
Content copied to clipboard
Unregister from Firebase Messaging updates.
Link copied to clipboard
Method to update the authentication token for this client.