Skip to content

ApplicationCallOptions

Adnan Mujagić edited this page Aug 5, 2024 · 7 revisions



static builder()

Description

Creates a builder instance used to build a new instance of ApplicationCallOptions.

Arguments

  • none

Returns

Example

let applicationCallOptionsBuilder = ApplicationCallOptions.builder();



audio()

Description

Getter for the audio field.

Arguments

  • none

Returns

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

Example

let applicationCallOptions = ApplicationCallOptions.builder().setAudio(false).build();
let audio = applicationCallOptions.audio;



video()

Description

Getter for the video field.

Arguments

  • none

Returns

  • boolean - Value of the video field indicating whether the call should include local video.

Example

let applicationCallOptions = ApplicationCallOptions.builder().setVideo(true).build();
let video = applicationCallOptions.video;



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 applicationCallOptions = ApplicationCallOptions.builder()
    .setAudioOptions(AudioOptions.builder().setLowDataMode(true).build())
    .build();
let audioOptions = applicationCallOptions.audioOptions;



videoOptions()

Description

Getter for the videoOptions field.

Arguments

  • none

Returns

  • VideoOptions - Value of the videoOptions field indicating what configuration should be used for the local video.

Example

let applicationCallOptions = ApplicationCallOptions.builder()
    .setVideo(true)
    .setVideoOptions(VideoOptions.builder().setCameraOrientation(CameraOrientation.BACK).build())
    .build();
let videoOptions = applicationCallOptions.videoOptions;



customData()

Description

Getter for the customData field.

Arguments

  • none

Returns

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

Example

let applicationCallOptions = ApplicationCallOptions.builder().setCustomData({'city': 'New York'}).build();
let customData = applicationCallOptions.customData;



dataChannel()

Description

Getter for the dataChannel field.

Arguments

  • none

Returns

  • boolean - Value of the dataChannel field indicating whether the data channel should be created for the call.

Example

let applicationCallOptions = ApplicationCallOptions.builder().setDataChannel(true).build();
let dataChannel = applicationCallOptions.dataChannel



platformOptions()

Description

Getter for the platformOptions field.

Arguments

  • none

Returns

Example

let applicationCallOptions = ApplicationCallOptions.builder()
        .setPlatformOptions(PlatformOptions.builder()
                .setApplicationId("my-application-id")
                .setEntityId("my-entity-id")
                .build())
        .build();
let platformOptions = applicationCallOptions.platformOptions

Tutorials

Migration guides

Reference documentation

Clone this wiki locally