SinchClient

interface SinchClient

The SinchClient is the Sinch SDK entry point.

It provides access to the feature classes in the Sinch SDK:

See also

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun addSinchClientListener(sinchClientListener: SinchClientListener)

Adds SinchClientListener object that handles events from the SinchClient.

Link copied to clipboard
abstract fun checkManifest()

This method should be called before and be used during development time to verify that the manifest contains the permissions required. Once the application is ready to be published any calls to this manifest can be removed.

Link copied to clipboard
abstract fun relayRemotePushNotification(callNotificationResult: CallNotificationResult)

Method used to forward the push notification payload. This will implicitly start the SinchClient if it wasn't already started.

Link copied to clipboard
abstract fun removeSinchClientListener(sinchClientListener: SinchClientListener)

Removes listener for client events.

Link copied to clipboard
abstract fun start()

Starts the SinchClient. This must be done prior to making any calls.

Link copied to clipboard
abstract fun terminateGracefully()

Terminates the Sinch client, while still leaving it some time to finish up currently pending tasks, for example finishing pending HTTP requests.

Link copied to clipboard
abstract fun unregisterPushToken(pushTokenUnregistrationCallback: PushTokenUnregistrationCallback)

Unregisters any push token that has been registered for Sinch Managed Push (for the User that this instance is bound to).

Properties

Link copied to clipboard

AudioController object for controlling different audio settings.

Link copied to clipboard

The CallController object used for placing and receiving calls.

Link copied to clipboard
abstract val isStarted: Boolean

Indicates if the SinchClient is started.

Link copied to clipboard
abstract val localUserId: String

The id of the user associated with this SinchClient.

Link copied to clipboard

VideoController object for managing and retrieving views for Video calls.