Enum Class CoBrowsingCaptureMode
- All Implemented Interfaces:
Serializable,Comparable<CoBrowsingCaptureMode>,Constable
Controls how the screen is captured during mobile co-browsing.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription"Screen sharing based" co-browsing: captures the whole device screen via Android MediaProjection, so co-browsing keeps working while the app is backgrounded.Normal co-browsing: captures the app's own UI via view drawing. -
Method Summary
Modifier and TypeMethodDescriptionstatic CoBrowsingCaptureModeReturns the enum constant of this class with the specified name.static CoBrowsingCaptureMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SCREENSHOT
Normal co-browsing: captures the app's own UI via view drawing. Works only while the app is in the foreground; capturing pauses when the app is backgrounded. No extra permission is required. This is the default. -
MEDIA_PROJECTION
"Screen sharing based" co-browsing: captures the whole device screen via Android MediaProjection, so co-browsing keeps working while the app is backgrounded. The user is asked to allow screen recording when co-browsing starts. Private-view / secure-field masking only applies while the app is in the foreground (it cannot be applied to other apps' content).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-