Package com.cometchat.pro.core
Class CallSettings.CallSettingsBuilder
- java.lang.Object
-
- com.cometchat.pro.core.CallSettings.CallSettingsBuilder
-
- Enclosing class:
- CallSettings
public static class CallSettings.CallSettingsBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CallSettingsBuilder(Activity activity, RelativeLayout videoContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallSettingsbuild()CallSettings.CallSettingsBuilderenableDefaultLayout(boolean defaultLayout)CallSettings.CallSettingsBuildersetAudioOnlyCall(boolean audioOnly)A method to determine if the call is going to be an audio only call.CallSettings.CallSettingsBuildersetDefaultAudioMode(java.lang.String audioMode)A method to set the default audio mode for the callCallSettings.CallSettingsBuildersetMode(java.lang.String mode)A method to start the call with a specified modeCallSettings.CallSettingsBuildersetRegion(java.lang.String region)A method to set the region where your app is hostedCallSettings.CallSettingsBuildersetSessionId(java.lang.String sid)A method to set the unique session id of the call.CallSettings.CallSettingsBuildershowAudioModeButton(boolean showAudioModeButton)A method to set if the audio mode button is to be displayed in the UI.CallSettings.CallSettingsBuildershowEndCallButton(boolean showEndCallButton)A method to set if the end call button is to be displayed in the UI.CallSettings.CallSettingsBuildershowMuteAudioButton(boolean showMuteAudioButton)A method to set if the mute audio button is to be displayed in the UI.CallSettings.CallSettingsBuildershowPauseVideoButton(boolean showPauseVideoButton)A method to set if the pause video button is to be displayed in the UI.CallSettings.CallSettingsBuildershowSwitchCameraButton(boolean showSwitchCameraButton)A method to set if the switch camera button is to be displayed in the UI.CallSettings.CallSettingsBuilderstartWithAudioMuted(boolean startWithAudioMuted)A method to start the call with audio mutedCallSettings.CallSettingsBuilderstartWithVideoMuted(boolean startWithVideoMuted)A method to start the call with video muted
-
-
-
Method Detail
-
enableDefaultLayout
public CallSettings.CallSettingsBuilder enableDefaultLayout(boolean defaultLayout)
-
setSessionId
public CallSettings.CallSettingsBuilder setSessionId(java.lang.String sid)
A method to set the unique session id of the call.- Parameters:
sid- A unique session id for the call.- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
showEndCallButton
public CallSettings.CallSettingsBuilder showEndCallButton(boolean showEndCallButton)
A method to set if the end call button is to be displayed in the UI.- Parameters:
showEndCallButton- A boolean that determines if the end call button is to be displayed on the UI- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
showSwitchCameraButton
public CallSettings.CallSettingsBuilder showSwitchCameraButton(boolean showSwitchCameraButton)
A method to set if the switch camera button is to be displayed in the UI.- Parameters:
showSwitchCameraButton- A boolean that determines if the switch camera button is to be displayed on the UI- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
showMuteAudioButton
public CallSettings.CallSettingsBuilder showMuteAudioButton(boolean showMuteAudioButton)
A method to set if the mute audio button is to be displayed in the UI.- Parameters:
showMuteAudioButton- A boolean that determines if the mute audio button is to be displayed on the UI- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
showPauseVideoButton
public CallSettings.CallSettingsBuilder showPauseVideoButton(boolean showPauseVideoButton)
A method to set if the pause video button is to be displayed in the UI.- Parameters:
showPauseVideoButton- A boolean that determines if the pause video button is to be displayed on the UI- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
showAudioModeButton
public CallSettings.CallSettingsBuilder showAudioModeButton(boolean showAudioModeButton)
A method to set if the audio mode button is to be displayed in the UI.- Parameters:
showAudioModeButton- A boolean that determines if the audio mode button is to be displayed on the UI- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
setAudioOnlyCall
public CallSettings.CallSettingsBuilder setAudioOnlyCall(boolean audioOnly)
A method to determine if the call is going to be an audio only call.- Parameters:
audioOnly- A boolean that determines if the call is going to be an audio only call.- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
setRegion
public CallSettings.CallSettingsBuilder setRegion(java.lang.String region)
A method to set the region where your app is hosted- Parameters:
region- The region where the app is hosted.- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
setMode
public CallSettings.CallSettingsBuilder setMode(java.lang.String mode)
A method to start the call with a specified mode- Parameters:
mode- The mode that the call is supposed to be started in. This could hold either of the below values 1. spotlight 2. single 3. default- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
startWithAudioMuted
public CallSettings.CallSettingsBuilder startWithAudioMuted(boolean startWithAudioMuted)
A method to start the call with audio muted- Parameters:
startWithAudioMuted- A boolean that determines if the call should be started with the audio muted- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
startWithVideoMuted
public CallSettings.CallSettingsBuilder startWithVideoMuted(boolean startWithVideoMuted)
A method to start the call with video muted- Parameters:
startWithVideoMuted- A boolean that determines if the call should be started with the video muted- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
setDefaultAudioMode
public CallSettings.CallSettingsBuilder setDefaultAudioMode(java.lang.String audioMode)
A method to set the default audio mode for the call- Parameters:
audioMode- The audio mode that is to be set for the call- Returns:
- CallSettingsBuilder object when
is called - Since:
- v2
-
build
public CallSettings build()
-
-