WorkerNavigator

The WorkerNavigator interface represents a subset of the Navigator interface allowed to be accessed from a Worker.

MDN Reference

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The read-only mediaCapabilities property of the WorkerNavigator interface references a MediaCapabilities object that can expose information about the decoding and encoding capabilities for a given format and output capabilities (as defined by the Media Capabilities API).

Link copied to clipboard
Link copied to clipboard

The permissions read-only property of the WorkerNavigator interface returns a Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.

Link copied to clipboard

The serviceWorker read-only property of the WorkerNavigator interface returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker. Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend fun clearAppBadge()
Link copied to clipboard
Link copied to clipboard
abstract suspend fun setAppBadge(contents: UInt53 = definedExternally)
Link copied to clipboard
abstract fun setAppBadgeAsync(contents: UInt53 = definedExternally): Promise<Void>