WorkerNavigator

@native @JSType

The WorkerNavigator interface represents a subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Deprecated methods

@deprecated("sendBeacon is not supported in web workers", "2.0.0")
def sendBeacon(url: String, data: BodyInit): Boolean
Deprecated

Inherited methods

def appName: String

Returns the name of the browser. The HTML5 specification also allows any browser to return "Netscape" here, for compatibility reasons.

Returns the name of the browser. The HTML5 specification also allows any browser to return "Netscape" here, for compatibility reasons.

Inherited from:
NavigatorID
def appVersion: String

Returns the version of the browser as a string. It may be either a plain version number, like "5.0", or a version number followed by more detailed information. The HTML5 specification also allows any browser to return "4.0" here, for compatibility reasons.

Returns the version of the browser as a string. It may be either a plain version number, like "5.0", or a version number followed by more detailed information. The HTML5 specification also allows any browser to return "4.0" here, for compatibility reasons.

Inherited from:
NavigatorID
def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def language: String

Returns a DOMString representing the preferred language of the user, usually the language of the browser UI. The null value is returned when this is unknown.

Returns a DOMString representing the preferred language of the user, usually the language of the browser UI. The null value is returned when this is unknown.

Inherited from:
NavigatorLanguage
def languages: Array[String]

Returns a Array of DOMStrings representing the the user's preferred languages. The language is described using BCP 47 language tags. The null value is returned when this is unknown.

Returns a Array of DOMStrings representing the the user's preferred languages. The language is described using BCP 47 language tags. The null value is returned when this is unknown.

Inherited from:
NavigatorLanguage
def onLine: Boolean

Returns the online status of the browser. The property returns a boolean value, with true for being online and false for being offline. The property sends updates whenever the browser's ability to connect to the network changes. The update occurs when the user follows links or when a script requests a remote page. For example, the property should return false when users click links soon after they lose internet connection.

Returns the online status of the browser. The property returns a boolean value, with true for being online and false for being offline. The property sends updates whenever the browser's ability to connect to the network changes. The update occurs when the user follows links or when a script requests a remote page. For example, the property should return false when users click links soon after they lose internet connection.

Inherited from:
NavigatorOnLine
def platform: String

Returns a string representing the platform of the browser.

Returns a string representing the platform of the browser.

Inherited from:
NavigatorID
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def userAgent: String

Returns the user agent string for the current browser.

Returns the user agent string for the current browser.

Inherited from:
NavigatorID
def valueOf(): Any
Inherited from:
Object