WorkerNavigator Class
https://html.spec.whatwg.org/multipage/workers.html#the-workernavigator-object: the identity and the state of the user agent in a worker.
public sealed class WorkerNavigatorProperties
| Name | Description |
|---|---|
| AppCodeName | Gets the legacy application code name, always Mozilla. |
| AppName | Gets the legacy application name, always Netscape. |
| AppVersion | Gets the legacy application version, derived from the user agent. |
| Connection | Gets the network connection of the device (https://wicg.github.io/netinfo/#navigatornetworkinformation-interface), read from NetworkInformationOptions.Provider. |
| DeviceMemory | Gets the approximate memory of the device, in GiB (see Navigator.DeviceMemory). |
| GlobalPrivacyControl | Gets whether the user does not consent to the sale or sharing of their data (https://w3c.github.io/gpc/#dom-globalprivacycontrol-globalprivacycontrol): see GlobalPrivacyControlOptions. |
| HardwareConcurrency | Gets the number of logical processors available to the user agent. |
| Language | Gets the preferred language of the user. |
| Languages | Gets the languages preferred by the user, by order of preference. |
| Locks | Gets the lock manager of the worker (https://w3c.github.io/web-locks/#dom-navigatorlocks-locks). |
| OnLine | Gets a value indicating whether the user agent is online. |
| Permissions | Gets the Permissions API of the worker (https://w3c.github.io/permissions/#dom-workernavigator-permissions). |
| Platform | Gets the platform of the user agent, an empty string. |
| Product | Gets the legacy product name, always Gecko. |
| ProductSub | Gets the legacy product sub-version. |
| ServiceWorker | Gets the service workers of the worker (https://w3c.github.io/ServiceWorker/#navigator-service-worker). |
| Storage | Gets the storage manager of the worker (https://storage.spec.whatwg.org/#dom-navigatorstorage-storage). |
| UserAgent | Gets the user agent string. |
| UserAgentData | Gets the identity of the user agent given by the User-Agent Client Hints (https://wicg.github.io/ua-client-hints/#dom-navigatorua-useragentdata): the values of BrowsingContextOptions.ClientHints. The scripts only see it in a secure context. |
| Vendor | Gets the vendor of the user agent, an empty string. |
| VendorSub | Gets the legacy vendor sub-version, an empty string. |
AppCodeName
Worker.csGets the legacy application code name, always Mozilla.
public string AppCodeName { get; }Property value
See also
AppName
Worker.csGets the legacy application name, always Netscape.
public string AppName { get; }Property value
See also
AppVersion
Worker.csGets the legacy application version, derived from the user agent.
public string AppVersion { get; }Property value
See also
Connection
NetworkInformation.csGets the network connection of the device (https://wicg.github.io/netinfo/#navigatornetworkinformation-interface), read from NetworkInformationOptions.Provider.
public NetworkInformation Connection { get; }DeviceMemory
NetworkInformation.csGets the approximate memory of the device, in GiB (see Navigator.DeviceMemory).
public double DeviceMemory { get; }Property value
GlobalPrivacyControl
NetworkInformation.csGets whether the user does not consent to the sale or sharing of their data (https://w3c.github.io/gpc/#dom-globalprivacycontrol-globalprivacycontrol): see GlobalPrivacyControlOptions.
public bool GlobalPrivacyControl { get; }HardwareConcurrency
Worker.csGets the number of logical processors available to the user agent.
public ulong HardwareConcurrency { get; }Language
Worker.csLanguages
Worker.csGets the languages preferred by the user, by order of preference.
public IReadOnlyList<string> Languages { get; }Locks
Worker.csGets the lock manager of the worker (https://w3c.github.io/web-locks/#dom-navigatorlocks-locks).
public LockManager Locks { get; }OnLine
Worker.csGets a value indicating whether the user agent is online.
public bool OnLine { get; }Property value
See also
Permissions
Worker.csGets the Permissions API of the worker (https://w3c.github.io/permissions/#dom-workernavigator-permissions).
public Permissions Permissions { get; }Platform
Worker.csGets the platform of the user agent, an empty string.
public string Platform { get; }Property value
See also
Product
Worker.csProductSub
Worker.csServiceWorker
Worker.csGets the service workers of the worker (https://w3c.github.io/ServiceWorker/#navigator-service-worker).
public ServiceWorkerContainer ServiceWorker { get; }Storage
Worker.csGets the storage manager of the worker (https://storage.spec.whatwg.org/#dom-navigatorstorage-storage).
public StorageManager Storage { get; }UserAgent
Worker.csUserAgentData
Navigator.UserAgentData.csGets the identity of the user agent given by the User-Agent Client Hints (https://wicg.github.io/ua-client-hints/#dom-navigatorua-useragentdata): the values of BrowsingContextOptions.ClientHints. The scripts only see it in a secure context.
public NavigatorUAData UserAgentData { get; }Property value
See also
Vendor
Worker.csGets the vendor of the user agent, an empty string.
public string Vendor { get; }Property value
See also
VendorSub
Worker.csGets the legacy vendor sub-version, an empty string.
public string VendorSub { get; }Property value
See also
Methods
| Name | Description |
|---|---|
| ClearAppBadge() | Clears the badge of the application (https://w3c.github.io/badging/#clearappbadge-method), as setAppBadge(0). |
| SetAppBadge(ulong?) | Sets the badge of the application (https://w3c.github.io/badging/#setappbadge-method), with BadgingOptions.SetBadge. |
ClearAppBadge()
Badging.csClears the badge of the application (https://w3c.github.io/badging/#clearappbadge-method), as setAppBadge(0).
public Task ClearAppBadge()SetAppBadge(ulong?)
Badging.csSets the badge of the application (https://w3c.github.io/badging/#setappbadge-method), with BadgingOptions.SetBadge.