Enum Class CefriumPermission
- All Implemented Interfaces:
Serializable, Comparable<CefriumPermission>, Constable
A web permission a page can ask for. See
CefriumPermissionRequest.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe camera, throughgetUserMedia.navigator.clipboard.readText.navigator.geolocation.The microphone, throughgetUserMedia.Web NFC (NDEFReader); also declareandroid.permission.NFC.Web notifications.Any other permission the engine asks for (for example local network access or MIDI). -
Method Summary
Modifier and TypeMethodDescriptionstatic CefriumPermissionReturns the enum constant of this class with the specified name.static CefriumPermission[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GEOLOCATION
navigator.geolocation. The app must also holdACCESS_FINE_LOCATIONorACCESS_COARSE_LOCATION, and location must be on; otherwise the page is refused before any request. -
CAMERA
The camera, throughgetUserMedia. -
MICROPHONE
The microphone, throughgetUserMedia. -
NOTIFICATIONS
Web notifications. -
CLIPBOARD_READ
navigator.clipboard.readText. Writing needs no permission. -
NFC
Web NFC (NDEFReader); also declareandroid.permission.NFC. -
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
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
-