LockManager extension type
The LockManager
interface of the
Web Locks API
provides methods for requesting a new Lock object and querying for an
existing Lock
object. To get an instance of LockManager
, call
navigator.locks
.
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
query(
) → JSPromise< LockManagerSnapshot> -
The
query()
method of the LockManager interface returns aPromise
that resolves with an object containing information about held and pending locks. -
request(
String name, JSObject callbackOrOptions, [LockGrantedCallback callback]) → JSPromise< JSAny?> -
The
request()
method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics. The requestedLock
is passed to a callback, while the function itself returns aPromise
that resolves (or rejects) with the result of the callback after the lock is released, or rejects if the request is aborted. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited