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
- 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
- DEVICE_ORIENTATION_AND_MOTION → PermissionResourceType
-
Resource belongs to the device’s orientation and motion.
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
- 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
-
values
→ Set<
PermissionResourceType> -
Set of all values of PermissionResourceType.
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.