call

open fun call(cid: StreamCallId, onSuccess: (Call) -> Unit? = null, onError: (Exception) -> Unit? = null)

Get a call instance with the members list and call ID.

Note: Callbacks are posted on Dispatchers.Main dispatcher.

Parameters

cid

the call ID

members

the call members

onSuccess

callback where the Call object is returned

onError

callback when the Call was not returned.