startFreeCall

suspend fun startFreeCall(    context: Context,     recipient: STWRecipientSingle,     callPriority: Int = STWCallPriority.NORMAL): ApiResult<STWVCall>

Call this method to start a new audio VoIP call using recipient

Return

a ApiResult.Success of STWVCall object if the call started successfully otherwise will return ApiResult.Error

Parameters

context

: the application context

recipient

: the other recipient information of type STWRecipientSingle

callPriority

: the call priority , see STWCallPriority


suspend fun startFreeCall(    context: Context,     threadId: Int,     callPriority: Int = STWCallPriority.NORMAL): ApiResult<STWVCall>

Call this method to start a new audio VoIP call using a conversation ID

Return

a ApiResult.Success of STWVCall object if the call started successfully otherwise will return ApiResult.Error

Parameters

context

: the application context

threadId

: The conversation id

callPriority

: the call priority , see STWCallPriority