PermissionResourceType class

Class that represents a type of resource used to ask user's permission.

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNativeValue() → dynamic
Gets dynamic native value.
toString() String
A string representation of this object.
override
toValue() String
Gets String value.

Operators

operator ==(Object value) bool
The equality operator.
override

Static Properties

AUTOPLAY PermissionResourceType
Indicates permission to play audio and video automatically on sites. This permission affects the autoplay attribute and play method of the audio and video HTML elements, and the start method of the Web Audio API. See the Autoplay guide for media and Web Audio APIs for details.
final
CAMERA PermissionResourceType
Resource belongs to video capture device, like camera.
final
CAMERA_AND_MICROPHONE PermissionResourceType
A media device or devices that can capture audio and video.
final
CLIPBOARD_READ PermissionResourceType
Indicates permission to read the system clipboard without a user gesture.
final
DEVICE_ORIENTATION_AND_MOTION PermissionResourceType
Resource belongs to the device’s orientation and motion.
final
FILE_READ_WRITE PermissionResourceType
Indicates permission to read and write to files or folders on the device. Permission is requested when developers use the File System Access API to show the file or folder picker to the end user, and then request "readwrite" permission for the user's selection.
final
GEOLOCATION PermissionResourceType
Indicates permission to access geolocation.
final
LOCAL_FONTS PermissionResourceType
Indicates permission to use fonts on the device. Permission is requested when developers use the Local Font Access API to query the system fonts available for styling web content.
final
MICROPHONE PermissionResourceType
Resource belongs to audio capture device, like microphone.
final
MIDI_SYSEX PermissionResourceType
Resource will allow sysex messages to be sent to or received from MIDI devices. These messages are privileged operations, e.g. modifying sound libraries and sampling data, or even updating the MIDI device's firmware. Permission may be requested for this resource in API levels 21 and above, if the Android device has been updated to WebView 45 or above.
final
MULTIPLE_AUTOMATIC_DOWNLOADS PermissionResourceType
Indicates permission to automatically download multiple files. Permission is requested when multiple downloads are triggered in quick succession.
final
NOTIFICATIONS PermissionResourceType
Indicates permission to send web notifications.
final
OTHER_SENSORS PermissionResourceType
Indicates permission to access generic sensor. Generic Sensor covers ambient-light-sensor, accelerometer, gyroscope, and magnetometer.
final
PROTECTED_MEDIA_ID PermissionResourceType
Resource belongs to protected media identifier. After the user grants this resource, the origin can use EME APIs to generate the license requests.
final
UNKNOWN PermissionResourceType
Indicates an unknown permission.
final
values Set<PermissionResourceType>
Set of all values of PermissionResourceType.
final
WINDOW_MANAGEMENT PermissionResourceType
Indicates permission to open and place windows on the screen. Permission is requested when developers use the Multi-Screen Window Placement API to get screen details.
final

Static Methods

fromNativeValue(dynamic value) PermissionResourceType?
Gets a possible PermissionResourceType instance from a native value.
fromValue(String? value) PermissionResourceType?
Gets a possible PermissionResourceType instance from String value.