PermissionState enum
A permission represents a user's decision to allow a web application to use a powerful feature. Conceptually, a permission for a powerful feature can be in one of the following states: granted, denied or prompt.
Example and more on MDN Web Docs
Values
- granted → const PermissionState
-
The user, or the user agent on the user's behalf, has given express permission to use a powerful feature. The caller will can use the feature possibly without having the user agent asking the user's permission.
- denied → const PermissionState
-
The user, or the user agent on the user's behalf, has denied access to this powerful feature. The caller will can't use the feature.
- prompt → const PermissionState
-
The user has not given express permission to use the feature (i.e., it's the same as denied). It also means that if a caller attempts to use the feature, the user agent will either be prompting the user for permission or access to the feature will be denied.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PermissionState> - A constant List of the values in this enum, in order of their declaration.