startPTTCall

open fun startPTTCall(    @NonNull context: Context,     @NonNull users: Array<String>,     @NonNull threadName: String,     priority: Int,     forOnlyAvailbaleRecipients: Boolean,     floorRequestOnInvite: Boolean,     @Nullable completion: CompletionCallback)

Call this method to start a new PTT call with users

Parameters

context

the application context

users

the list of international phone numbers and/or group ids that you want to start with the call(example of users format: [group:1,group:2,1234567891,1234567892,1234567893])

threadName

conversation name for the created group thread that will be associated to the call session

priority

the call priority

forOnlyAvailbaleRecipients

the call will be start with on duty users only

floorRequestOnInvite

take the floor as soon as user joined the call

completion

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


open fun startPTTCall(    @NonNull context: Context,     @NonNull threadId: String,     priority: Int,     forOnlyAvailbaleRecipients: Boolean,     floorRequestOnInvite: Boolean,     @Nullable completion: CompletionCallback)

Call this method to start a new PTT call from existing conversation

Parameters

context

the application context

threadId

conversation ID where call will be associated(the called party will be recipient of the thread)

priority

the call priority

forOnlyAvailbaleRecipients

the call will be start with on duty users only

floorRequestOnInvite

take the floor as soon as user joined the call

completion

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