joinPTTCall

fun joinPTTCall(    context: Context,     threadId: String,     completion: CompletionCallback?,     playSTWSinkCallback: STWAudioSinkPlayCallback,     captureSTWSinkCallback: STWAudioSinkCaptureCallback)

Call this method to join a group call.

Note : the audio sink feature will be enabled automatically for this method.

Parameters

context

Context the application context

threadId

String the group id

completion

CompletionCallback is a block of code which will be invoked when the call is created

playSTWSinkCallback

STWAudioSinkPlayCallback is a block of code which will be invoked when the play sink is ready and there is a valid data, and when the play sink is ended

captureSTWSinkCallback

STWAudioSinkCaptureCallback is a block of code which will be invoked when the capture sink is ready and there is a valid data, and when the capture sink is ended