-
Notifications
You must be signed in to change notification settings - Fork 2
ApplicationCallOptions
Lejla Solak edited this page Feb 10, 2025
·
7 revisions
static ApplicationCallOptions.Builder builder()boolean isAudio()AudioOptions getAudioOptions()boolean isVideo()VideoOptions getVideoOptions()Map<String, String> getCustomData()boolean isDataChannel()PlatformOptions getPlatformOptions()boolean isAutoReconnect()static class Builder
Creates a builder instance used to build a new instance of ApplicationCallOptions.
none
-
ApplicationCallOptions.Builder- Instance of the builder.
ApplicationCallOptions.Builder applicationCallOptionsBuilder = ApplicationCallOptions.builder();Getter for the audio field.
none
-
boolean- The value of theaudiofield indicating whether the call should include local audio.
ApplicationCallOptions applicationCallOptions = ApplicationCallOptions.builder().audio(false).build();
boolean audio = applicationCallOptions.isAudio();Getter for the audioOptions field.
none
-
AudioOptions- The value of theaudioOptionsfield indicating what configuration should be used for the audio.
ApplicationCallOptions applicationCallOptions = ApplicationCallOptions.builder()
.audioOptions(AudioOptions.builder().lowDataMode(true).build())
.build();
AudioOptions audioOptions = applicationCallOptions.getAudioOptions();Getter for the video field.
none
-
boolean- The value of thevideofield indicating whether the call should include local video.
ApplicationCallOptions applicationCallOptions = ApplicationCallOptions.builder().video(true).build();
boolean video = applicationCallOptions.isVideo();Getter for the videoOptions field.
none
-
VideoOptions- The value of thevideoOptionsfield indicating what configuration should be used for the local video.
ApplicationCallOptions applicationCallOptions = ApplicationCallOptions.builder()
.videoOptions(VideoOptions.builder().cameraOrientation(VideoOptions.CameraOrientation.BACK).build())
.build();
VideoOptions videoOptions = applicationCallOptions.getVideoOptions();Getter for the customData field.
none
-
Map<String, String>- The value of thecustomDatafield representing the additional custom information added to the call options.
ApplicationCallOptions options = ApplicationCallOptions.builder().customData(Map.of("username", "Alice")).build();
Map<String, String> customData = options.getCustomData();Getter for the dataChannel field.
none
-
boolean- The value of thedataChannelfield indicating whether the data channel should be created for this call.
ApplicationCallOptions applicationCallOptions = ApplicationCallOptions.builder().dataChannel(true).build();
boolean dataChannel = applicationCallOptions.isDataChannel();Getter for the platformOptions field.
none
-
PlatformOptions- The value of theplatformOptionsfield. For more details, see documentation.
ApplicationCallOptions applicationCallOptions = ApplicationCallOptions.builder()
.platformOptions(PlatformOptions.builder().applicationId("my-application-id").entityId("my-entity-id").build())
.build();
PlatformOptions platformOptions = applicationCallOptions.getPlatformOptions();Getter for the autoReconnect field.
none
-
boolean- The value of theautoReconnectfield indicating whether the call should automatically reconnect.
ApplicationCallOptions applicationCallOptions = ApplicationCallOptions.builder().autoReconnect(true).build();
boolean autoReconnectEnabled = applicationCallOptions.isAutoReconnect();Builder audio(boolean audio)Builder video(boolean video)Builder audioOptions(AudioOptions audioOptions)Builder videoOptions(VideoOptions videoOptions)Builder customData(Map<String, String> customData)Builder dataChannel(boolean dataChannel)Builder platformOptions(PlatformOptions platformOptions)Builder autoReconnect(boolean autoReconnect)ApplicationCallOptions build()
Setter for the audio field.
-
audio:boolean-trueif the local audio should be enabled. Enabled by default.
-
ApplicationCallOptions.Builder- Instance of the builder.
ApplicationCallOptions.Builder applicationCallOptionsBuilder = ApplicationCallOptions.builder().audio(false);Setter for the video field.
-
video:boolean-trueif the video should be enabled. Disabled by default.
-
ApplicationCallOptions.Builder- Instance of the builder.
ApplicationCallOptions.Builder applicationCallOptionsBuilder = ApplicationCallOptions.builder().video(true);Setter for the audioOptions field.
-
audioOptions:AudioOptions- Configuration used for the audio in the call.
-
ApplicationCallOptions.Builder- Instance of the builder.
AudioOptions audioOptions = AudioOptions.builder().lowDataMode(true).build();
ApplicationCallOptions.Builder applicationCallOptionsBuilder = ApplicationCallOptions.builder().audioOptions(audioOptions);Setter for the videoOptions field.
-
videoOptions:VideoOptions- Configuration used for the local video in the call.
-
ApplicationCallOptions.Builder- Instance of the builder.
VideoOptions videoOptions = VideoOptions.builder().cameraOrientation(VideoOptions.CameraOrientation.BACK).build();
ApplicationCallOptions.Builder applicationCallOptionsBuilder = ApplicationCallOptions.builder().videoOptions(videoOptions);Setter for the customData field.
-
customData:Map<String, String>- Object containing custom additional information. Empty by default. This object will be forwarded to the backend application.
-
ApplicationCallOptions.Builder- Instance of the builder.
Map<String, String> customData = Map.of("username", "Alice");
ApplicationCallOptions.Builder applicationCallOptionsBuilder = ApplicationCallOptions.builder().customData(customData);Setter for the dataChannel field.
-
dataChannel:boolean-trueif the data channel should be enabled. Disabled by default.
-
ApplicationCallOptions.Builder- Instance of the builder.
ApplicationCallOptions.Builder applicationCallOptionsBuilder = ApplicationCallOptions.builder().dataChannel(true);Setter for the platformOptions field.
-
platformOptions:PlatformOptions- Configuration of the application and entity that the call should be associated with.
-
ApplicationCallOptions.Builder- Instance of the builder.
ApplicationCallOptions.Builder applicationCallOptionsBuilder = ApplicationCallOptions.builder()
.platformOptions(PlatformOptions.builder().applicationId("my-application-id").entityId("my-entity-id").build());Setter for the autoReconnect field.
-
autoReconnect:boolean-trueif the automatic call reconnect should be enabled. Disabled by default.
-
ApplicationCallOptions.Builder- Instance of the builder.
ApplicationCallOptions.Builder applicationCallOptionsBuilder = ApplicationCallOptions.builder().autoReconnect(true);Builds a new instance of the ApplicationCallOptions.
none
-
ApplicationCallOptions- Instance of theApplicationCallOptions.
ApplicationCallOptions.Builder applicationCallOptionsBuilder = ApplicationCallOptions.builder();
ApplicationCallOptions applicationCallOptions = applicationCallOptionsBuilder.build();