connect

fun connect(userId: String, accessTokenProvider: AccessTokenProvider): Deferred<User>

Connect Kaleyra Video SDK

Return

Deferred the Deferred async result that will contain the connected user or the connection error after the connection attempt

Parameters

userId

String the userId of the user that is requested to be connected

accessTokenProvider

SuspendFunction1<@kotlin.ParameterName Date, Result> lambda function that will be called whenever a token for the sdk connection is requested


fun connect(accessLink: String): Deferred<User>

Connect Kaleyra Video SDK via access-link The access-link represents a call that the SDK connection will be scoped to. After the connection and the call establishment, when the call will end, the SDK will be automatically disconnected.

Return

Deferred the Deferred async result that will contain the connected user or the connection error after the connection attempt

Parameters

accessLink

String the access-link to be used for the SDK connection