PermissionStatus class
An {@linkcode EventTarget} returned from the {@linkcode Deno.permissions} API which can provide updates to any state changes of the permission.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
Properties
- addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
addEventListener
→ ({void Function<
K$>(PermissionStatusEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on PermissionStatus, provided by the PermissionStatus$Typings extension
Overload accessor: $1, $2no setter - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- onchange ↔ dynamic Function(Event)?
-
Available on PermissionStatus, provided by the PermissionStatus$Typings extension
getter/setter pair - partial → bool
-
Available on PermissionStatus, provided by the PermissionStatus$Typings extension
Describes if permission is only granted partially, eg. an access might be granted to "/foo" directory, but denied for "/foo/bar". In such case this field will be set totrue
when querying for read permissions of "/foo" directory.no setter - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
removeEventListener
→ ({void Function<
K$>(PermissionStatusEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on PermissionStatus, provided by the PermissionStatus$Typings extension
Overload accessor: $1, $2no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → PermissionState
-
Available on PermissionStatus, provided by the PermissionStatus$Typings extension
no setter
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