-
Notifications
You must be signed in to change notification settings - Fork 2
ApplicationCallOptions
Adnan Mujagić edited this page Aug 5, 2024
·
6 revisions
static ApplicationCallOptions.Builder builder()
boolean isAudio()
AudioOptions getAudioOptions()
boolean isVideo()
VideoOptions getVideoOptions()
Map<String, String> getCustomData()
boolean isDataChannel()
PlatformOptions getPlatformOptions()
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
- Value of theaudio
field 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
- Value of theaudioOptions
field 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
- Value of thevideo
field 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
- Value of thevideoOptions
field 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>
- Value of thecustomData
field 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
- Value of thedataChannel
field 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
- Value of theplatformOptions
field. 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();
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)
ApplicationCallOptions build()
Setter for the audio
field.
-
audio
:boolean
-true
if 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
-true
if 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
-true
if 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());
Builds a new instance of the ApplicationCallOptions
.
none
-
ApplicationCallOptions
- Instance of theApplicationCallOptions
.
ApplicationCallOptions.Builder applicationCallOptionsBuilder = ApplicationCallOptions.builder();
ApplicationCallOptions applicationCallOptions = applicationCallOptionsBuilder.build();