Enum Class CoBrowsingCaptureMode

java.lang.Object
java.lang.Enum<CoBrowsingCaptureMode>
com.unblu.sdk.module.mobilecobrowsing.CoBrowsingCaptureMode
All Implemented Interfaces:
Serializable, Comparable<CoBrowsingCaptureMode>, Constable

public enum CoBrowsingCaptureMode extends Enum<CoBrowsingCaptureMode>
Controls how the screen is captured during mobile co-browsing.
  • Enum Constant Details

    • SCREENSHOT

      public static final CoBrowsingCaptureMode 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

      public static final CoBrowsingCaptureMode 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

      public static CoBrowsingCaptureMode[] 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

      public static CoBrowsingCaptureMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null