-
Notifications
You must be signed in to change notification settings - Fork 0
ApplicationCallOptionsBuilder
Adnan Mujagić edited this page Aug 5, 2024
·
7 revisions
setAudio(_audio: boolean): ApplicationCallOptionsBuilder
setAudioOptions(_audioOptions: AudioOptions): ApplicationCallOptionsBuilder
setVideo(_video: boolean): ApplicationCallOptionsBuilder
setVideoOptions(_videoOptions: VideoOptions): ApplicationCallOptionsBuilder
setCustomData(_customData: CustomData): ApplicationCallOptionsBuilder
setDataChannel(_dataChannel: boolean): ApplicationCallOptionsBuilder
setPlatformOptions(_platformOptions: PlatformOptions): ApplicationCallOptionsBuilder
build(): ApplicationCallOptions
Setter for the audio
field.
-
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 isfalse
.
-
ApplicationCallOptionsBuilder
- Instance of the builder.
let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setAudio(false);
Setter for the audioOptions
field.
-
audioOptions
:AudioOptions
- Configuration used for the audio in the call.
-
ApplicationCallOptionsBuilder
- Instance of the builder.
let audioOptions = AudioOptions.builder().lowDataMode(true).build();
let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setAudioOptions(audioOptions);
Setter for the video
field.
-
video
:boolean
-true
if the video should be enabled. Disabled by default.
-
ApplicationCallOptionsBuilder
- Instance of the builder.
let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setVideo(true);
Setter for the videoOptions
field.
-
videoOptions
:VideoOptions
- Configuration used for the local video in the call.
-
ApplicationCallOptionsBuilder
- Instance of the builder.
let videoOptions = VideoOptions.builder().setCameraOrientation(CameraOrientation.BACK).build()
let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setVideoOptions(videoOptions);
Setter for the customData
field.
-
customData
:CustomData
- Object containing custom additional information. Empty by default. This object will be forwarded to the backend application.
-
ApplicationCallOptionsBuilder
- Instance of the builder.
let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setCustomData({'city': 'New York'});
Setter for the dataChannel
field.
-
dataChannel
:boolean
-true
if the data channel should be created for the call. Disabled by default.
-
ApplicationCallOptionsBuilder
- Instance of the builder.
let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setDataChannel(true);
Setter for the platformOptions
field.
-
platformOptions
:PlatformOptions
- Configuration of the application and entity that the call should be associated with.
-
ApplicationCallOptionsBuilder
- Instance of the builder.
let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
applicationCallOptionsBuilder.setPlatformOptions(PlatformOptions.builder()
.setApplicationId("my-application-id")
.setEntityId("my-entity-id")
.build());
Builds a new instance of the ApplicationCallOptions
.
none
-
ApplicationCallOptions
- Instance of theApplicationCallOptions
.
let applicationCallOptionsBuilder = ApplicationCallOptions.builder();
let applicationCallOptions = applicationCallOptionsBuilder.build();