ConversationsClient

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
open class FCMToken
Class which represents token received by application from the Firebase Cloud Messaging service.
Link copied to clipboard
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
abstract fun createConversation(friendlyName: String, listener: CallbackListener<Conversation>)
Create a conversation with friendly name.
Link copied to clipboard
abstract fun getAndSubscribeUser(identity: String, listener: CallbackListener<User>)
Get user based on user identity and subscribe to real-time updates for this user.
Link copied to clipboard
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
abstract fun getMyIdentity(): String
Get user identity for current user
Link copied to clipboard
abstract fun getMyUser(): User
Get logged in User object.
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
open fun getSdkVersion(): String
Returns the version of the Conversations SDK.
Link copied to clipboard
abstract fun getSubscribedUsers(): List<User>
Get a list of currently subscribed User objects.
Link copied to clipboard
Get content URLs for all media attachments in the given set using single network request.
Link copied to clipboard
Get content URLs for all media attachments in the given set using single network request.
Link copied to clipboard
abstract fun handleNotification(notification: NotificationPayload)
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
abstract fun removeAllListeners()
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 shutdown()
Cleanly shuts down the messaging client when you are done with it.
Link copied to clipboard
Method to synchronize conversations with the backend.
Link copied to clipboard
Unregister from Firebase Messaging updates.
Link copied to clipboard
abstract fun updateToken(token: String, listener: StatusListener)
Method to update the authentication token for this client.