CallClient

fun CallClient(appContext: Context, lifecycle: Lifecycle? = null, handler: Handler? = null)

Constructs a new instance of a CallClient. This call does not join a room, rather a join must be done explicitly via CallClient.join.

Parameters

appContext

The application context

lifecycle

Optional: if provided, the CallClient will automatically be cleaned up when the owner of the Lifecycle is destroyed.

handler

Optional: the handler for the thread on which you wish to interact with the CallClient. Callbacks will be given on this thread, and CallClient APIs should also be invoked from this thread. If this is omitted, then the main application thread will be used.