java.lang.Object | |
↳ | com.salesforce.android.sos.api.SosConfiguration |
Configuration class for SOS sessions.
Instances of this class can be used to configure behavior within the SOS SDK.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | SosConfiguration.Builder | Builder for SosConfiguration instances. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT_CAMERA_FPS | The default number of frames to capture per second when sharing the front or back facing camera. | |||||||||
int | DEFAULT_SCREEN_SHARE_FPS | The default number of frames to capture per second when sharing the screen. | |||||||||
String | INTENT_TAG | The tag used in the Intent to start the SOS service. | |||||||||
int | MAX_ONBOARDING_CARDS | The maximum number of onboarding cards allowed. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final SosConfiguration | DEFAULT_CONFIGURATION | The default configuration is used when no custom configuration is specified when starting an SOS session. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static SosConfiguration.Builder |
builder()
Create a builder for building SosConfiguration instances.
| ||||||||||
int |
getAgentJoinSoundResourceId()
Returns the resource ID of the agent join sound.
| ||||||||||
Uri |
getAgentJoinSoundUri()
Returns the URI for the agent join sound.
| ||||||||||
String |
getAssetTtf()
Returns the custom typefaceFromAsset flag.
| ||||||||||
int |
getCameraFps()
Return the FPS value for sharing the front or back facing camera.
| ||||||||||
int |
getDefaultContainerPosition()
Return an IntDef that represents where the agent container should initially be placed.
| ||||||||||
SosShareType |
getDefaultShareType()
Returns the default share type for SOS sessions.
| ||||||||||
long |
getEndSessionTimeout()
Returns the length of time a disconnected session will wait for a reconnect before giving up.
| ||||||||||
Integer[] |
getOnboardingCardLayouts()
Return the layout IDs to be inflated and displayed within the onboarding carousel.
| ||||||||||
int |
getScreenCaptureFps()
Return the FPS value for sharing the screen.
| ||||||||||
long |
getSessionRetryTime()
Returns the length of time to wait before asking a user to retry or quit when trying to
start a session (for example, will be fired if no agent answers the call)
| ||||||||||
boolean |
isAgentPublish()
Returns the agent publish enabled flag.
| ||||||||||
boolean |
isAgentViewDpScaled()
Returns the agent view DP scaled flag.
| ||||||||||
boolean |
isAudioAllowed()
Returns the audio allowed flag.
| ||||||||||
boolean |
isBackFacingCameraEnabled()
Returns the back-facing camera flag.
| ||||||||||
boolean |
isConnectingUiEnabled()
Return whether or not the default SOS UI should be presented during the connecting phase of
the session.
| ||||||||||
boolean |
isFieldServicesEnabled()
Returns the Field Services flag.
| ||||||||||
boolean |
isFrontFacingCameraEnabled()
Returns the front-facing camera flag.
| ||||||||||
boolean |
isKeepScreenOn()
Return whether or not the screen should always remain on during the SOS session.
| ||||||||||
boolean |
isLoggingEnabled()
Returns the logging-enabled flag.
| ||||||||||
boolean |
isNetworkTestEnabled()
Returns the network test enabled flag.
| ||||||||||
boolean |
isOnboardingUiEnabled()
Checks if the onboarding UI is enabled.
| ||||||||||
boolean |
isPermissionUiEnabled()
Checks if the permission UI is enabled.
| ||||||||||
boolean |
isPlaySoundsEnabled()
Returns the flag for whether or not sounds will be played.
| ||||||||||
boolean |
isToastDisabled(SosToast toast)
Checks if a given toast was disabled when starting the session.
| ||||||||||
boolean |
isTwoWayVideoEnabled()
Returns the Two-way Video flag.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The default number of frames to capture per second when sharing the front or back facing camera.
The default number of frames to capture per second when sharing the screen.
The tag used in the Intent to start the SOS service.
The maximum number of onboarding cards allowed. Currently set to 6.
The default configuration is used when no custom configuration is specified when starting an SOS session.
Create a builder for building SosConfiguration instances.
Returns the resource ID of the agent join sound.
Returns the URI for the agent join sound.
Returns the custom typefaceFromAsset flag.
Return the FPS value for sharing the front or back facing camera.
Return an IntDef that represents where the agent container should initially be placed.
Returns the length of time a disconnected session will wait for a reconnect before giving up.
Return the layout IDs to be inflated and displayed within the onboarding carousel.
Return the FPS value for sharing the screen.
Returns the length of time to wait before asking a user to retry or quit when trying to start a session (for example, will be fired if no agent answers the call)
Returns the agent publish enabled flag.
Returns the agent view DP scaled flag.
Returns the audio allowed flag.
Returns the back-facing camera flag.
Return whether or not the default SOS UI should be presented during the connecting phase of the session.
Returns the Field Services flag.
Returns the front-facing camera flag.
Return whether or not the screen should always remain on during the SOS session.
Returns the logging-enabled flag.
Returns the network test enabled flag.
Checks if the onboarding UI is enabled. If disabled, the UI will be skipped completely when starting a session.
Checks if the permission UI is enabled. If disabled, the app is responsible for ensuring all required permissions are granted prior to starting the session. The permissions UI is only shown for Android Marshmallow and later devices.
Returns the flag for whether or not sounds will be played.
Checks if a given toast was disabled when starting the session. Toasts that are disabled are not shown by the SDK.
toast | The toast to check. |
---|
Returns the Two-way Video flag.