Enum Class CefriumPermission

java.lang.Object
java.lang.Enum<CefriumPermission>
com.cefrium.CefriumPermission
All Implemented Interfaces:
Serializable, Comparable<CefriumPermission>, Constable

@CefriumExperimental public enum CefriumPermission extends Enum<CefriumPermission>
A web permission a page can ask for. See CefriumPermissionRequest.
  • Enum Constant Details

    • GEOLOCATION

      public static final CefriumPermission GEOLOCATION
      navigator.geolocation. The app must also hold ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION, and location must be on; otherwise the page is refused before any request.
    • CAMERA

      public static final CefriumPermission CAMERA
      The camera, through getUserMedia.
    • MICROPHONE

      public static final CefriumPermission MICROPHONE
      The microphone, through getUserMedia.
    • NOTIFICATIONS

      public static final CefriumPermission NOTIFICATIONS
      Web notifications.
    • CLIPBOARD_READ

      public static final CefriumPermission CLIPBOARD_READ
      navigator.clipboard.readText. Writing needs no permission.
    • NFC

      public static final CefriumPermission NFC
      Web NFC (NDEFReader); also declare android.permission.NFC.
    • OTHER

      public static final CefriumPermission OTHER
      Any other permission the engine asks for (for example local network access or MIDI). A request that holds one is granted or denied as a whole, like the others.
  • Method Details

    • values

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