Skip to content

ApplicationCallOptionsBuilder

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



setAudio(audio)

Description

Setter for the audio field.

Arguments

  • audio: boolean -true if the local audio should be enabled. Enabled by default. Note, access to the microphone will still be requested even if audio is false.

Returns

Example

let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setAudio(false);



setAudioOptions(audioOptions)

Description

Setter for the audioOptions field.

Arguments

  • audioOptions: AudioOptions - Configuration used for the audio in the call.

Returns

Example

let audioOptions = AudioOptions.builder().lowDataMode(true).build();
let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setAudioOptions(audioOptions);



setVideo(video)

Description

Setter for the video field.

Arguments

  • video: boolean -true if the video should be enabled. Disabled by default.

Returns

Example

let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setVideo(true);



setVideoOptions(videoOptions)

Description

Setter for the videoOptions field.

Arguments

  • videoOptions: VideoOptions - Configuration used for the local video in the call.

Returns

Example

let videoOptions = VideoOptions.builder().setCameraOrientation(CameraOrientation.BACK).build()
let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setVideoOptions(videoOptions);



setCustomData(customData)

Description

Setter for the customData field.

Arguments

  • customData: CustomData - Object containing custom additional information. Empty by default. This object will be forwarded to the backend application.

Returns

Example

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



setDataChannel(dataChannel)

Description

Setter for the dataChannel field.

Arguments

  • dataChannel: boolean - true if the data channel should be created for the call. Disabled by default.

Returns

Example

let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setDataChannel(true);



setPlatformOptions(platformOptions)

Description

Setter for the platformOptions field.

Arguments

Returns

Example

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



build()

Description

Builds a new instance of the ApplicationCallOptions.

Arguments

  • none

Returns

Example

let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
let applicationCallOptions = applicationCallOptionsBuilder.build();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally