Skip to content

CallOptions

Eldar Babić edited this page Feb 10, 2025 · 5 revisions



audio

Description

Getter for the audio field.

Arguments

  • none

Returns

  • Bool - Value of the audio field indicating whether the call should include local audio.

Example

let phoneCallOptions = PhoneCallOptions(audio: false)
let audio = phoneCallOptions.audio



audioOptions

Description

Getter for the audioOptions field.

Arguments

  • none

Returns

  • AudioOptions - Value of the audioOptions field indicating what configuration should be used for the audio.

Example

let phoneCallOptions = PhoneCallOptions(audioOptions: AudioOptions(.lowData))
let audioOptions = phoneCallOptions.audioOptions



recordingOptions

Description

Getter for the recordingOptions field.

Arguments

  • none

Returns

  • RecordingOptions - Value of the recordingOptions field indicating what recording configuration should be used for the call.

Example

let phoneCallOptions = PhoneCallOptions(recordingOptions: RecordingOptions(.audio))
let recordingOptions = phoneCallOptions.recordingOptions



customData

Description

Getter for the customData field.

Arguments

  • none

Returns

  • CustomData - Value of the customData field containing custom additional information defined as an object of key-value String pairs.

Example

let phoneCallOptions = PhoneCallOptions(customData: ["city": "New York"])
let customData = phoneCallOptions.customData



autoReconnect

Description

Getter for the autoReconnect field.

Arguments

  • none

Returns

  • Bool - Value of the autoReconnect field indicating whether the call should automatically reconnect.

Example

let phoneCallOptions = PhoneCallOptions(autoReconnect: true)
let autoReconnect = phoneCallOptions.autoReconnect

Tutorials

Migration guides

Reference documentation

Clone this wiki locally