CallOptions

data class CallOptions @JvmOverloads constructor(    var callRecordingType: CallRecordingType = CallRecordingType.NONE,     var backCameraAsDefault: Boolean = false,     var disableProximitySensor: Boolean = false,     val autoAnswer: Boolean = false,     var feedbackEnabled: Boolean = false) : CallOptionSet

Call options

Constructors

Link copied to clipboard
fun CallOptions(    callRecordingType: CallRecordingType = CallRecordingType.NONE,     backCameraAsDefault: Boolean = false,     disableProximitySensor: Boolean = false,     autoAnswer: Boolean = false,     feedbackEnabled: Boolean = false)

Create empty Call options

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open override fun <T : CallOptionSet> withBackCameraAsDefault(): T

This functions adds the option to use back camera as default.

Link copied to clipboard
open override fun <T : CallOptionSet> withFeedbackEnabled(): T

This functions enables the displaying of the call feedback UI on call ended.

Link copied to clipboard
open override fun <T : CallOptionSet> withProximitySensorDisabled(): T

This functions disables the usage of proximity sensor during calls. It can be useful for custom devices such as smart-glasses.

Link copied to clipboard
fun withRecordingEnabled(callRecordingType: CallRecordingType? = CallRecordingType.AUTOMATIC): CallOptions

This function enable recording for the upcoming call.

Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
open override val autoAnswer: Boolean = false

Auto answer

Link copied to clipboard
open override var backCameraAsDefault: Boolean = false

Back camera as default

Link copied to clipboard
open override var callRecordingType: CallRecordingType

Recording type

Link copied to clipboard
open override var disableProximitySensor: Boolean = false

Disable proximity sensor

Link copied to clipboard
open override var feedbackEnabled: Boolean = false

Feedback UI on call ended

Link copied to clipboard
open override val recordingEnabled: Boolean

Recording enabled