LockManager

@native @JSGlobal @JSType
class LockManager extends Object

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.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def query(): Promise[LockManagerSnapshot]

Resolves with an object containing information about held and pending locks.

Resolves with an object containing information about held and pending locks.

def request(name: String, callback: Function1[Lock, Promise[Unit]]): Promise[Unit]

Requests a Lock object with parameters specifying its name and characteristics. The requested Lock is passed to a callback, while the function itself returns a Promise that resolves with undefined.

Requests a Lock object with parameters specifying its name and characteristics. The requested Lock is passed to a callback, while the function itself returns a Promise that resolves with undefined.

def request(name: String, options: LockOptions, callback: Function1[Lock, Promise[Unit]]): Promise[Unit]

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object