ConversationsClient
interface ConversationsClient
Conversations client - main entry point for the Conversations SDK.
Types
Link copied to clipboard
enum ConnectionState
Represents underlying twilsock connection state.
Link copied to clipboard
interface ConversationBuilder
Helper to create new conversation with provided data.
Link copied to clipboard
enum LogLevel
Log level constants for passing to setLogLevel.
Link copied to clipboard
interface Properties
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
Get ConversationBuilder to create conversation with options.
Link copied to clipboard
open fun create(context: Context, token: String, properties: ConversationsClient.Properties, listener: CallbackListener<ConversationsClient>)
Creates a new Conversations client instance with a token manager and client properties.
Link copied to clipboard
Create a conversation with friendly name.
Link 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 getContentTemplates(listener: CallbackListener<List<ContentTemplate>>): CancellationToken
Request rich content templates.
Link copied to clipboard
abstract fun getConversation(conversationSidOrUniqueName: String, listener: CallbackListener<Conversation>)
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
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
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
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
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
Method to synchronize conversations with the backend.
Link copied to clipboard
Unregister from Firebase Messaging updates.
Link copied to clipboard
Method to update the authentication token for this client.