Options

object Options

Represents operation options.

Since

0.6.0

Types

ThreadOption
Link copied to clipboard
enum ThreadOption : Enum<SendBirdCall.Options.ThreadOption>

ThreadOption determines how SendBirdCall will manage or create threads when callbacks or events are called. Refer to setThreadOption.

Functions

addDirectCallSound
Link copied to clipboard
fun addDirectCallSound(soundType: SendBirdCall.SoundType, resId: Int)

Adds direct call sound with sound type.

removeDirectCallSound
Link copied to clipboard
fun removeDirectCallSound(soundType: SendBirdCall.SoundType)

Removes direct call sound with sound type.

setCallConnectionTimeout
Link copied to clipboard
fun setCallConnectionTimeout(timeout: Int)

Sets call connection timeout(seconds).

Sets direct call dialing sound on when silent or vibrate mode of device.

setPreferredAudioSource
Link copied to clipboard
fun setPreferredAudioSource(audioSource: Int)

Sets preferred audio source. Please refer to the android.media.MediaRecorder.AudioSource for details. The default value is android.media.MediaRecorder.AudioSource.VOICE_COMMUNICATION. Some options could require additional permissions like android.Manifest.permission.CAPTURE_AUDIO_OUTPUT.

setRingingTimeout
Link copied to clipboard
fun setRingingTimeout(timeout: Int)

Sets ringing timeout(seconds).

setThreadOption
Link copied to clipboard
fun setThreadOption(threadOption: SendBirdCall.Options.ThreadOption, handler: Handler)

Sets ThreadOption. Refer to ThreadOption. If you want to use ThreadOption.HANDLER, you should provide your handler as a parameter. Otherwise, set Handler parameter to null.