Table of Contents

Class WorkerNavigator

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

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 Navigator property.

[Value("WorkerNavigator")]
public class WorkerNavigator
Inheritance
WorkerNavigator
Inherited Members

Remarks

Constructors

WorkerNavigator()

public WorkerNavigator()

Properties

Hid

NOTE
Experimental
The WorkerNavigator.hid
read-only property returns an HID object providing methods for accessing HID device connections and events that fire when the user agent connects to or disconnects from a device.
[Value("hid")]
public HID Hid { get; }

Property Value

HID

An HID object.

Remarks

Where a defined Permissions Policy blocks WebHID usage, the WorkerNavigator.hid property will not be available.

-WebHID API

See also on MDN

MediaCapabilities

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).

[Value("mediaCapabilities")]
public MediaCapabilities MediaCapabilities { get; }

Property Value

MediaCapabilities

A MediaCapabilities object.

Remarks

Permissions

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.

[Value("permissions")]
public Permissions Permissions { get; }

Property Value

Permissions

A Permissions object.

Remarks

Serial

NOTE
Experimental
The serial read-only property of the WorkerNavigator interface returns a Serial object which represents the entry point into the Web Serial API.
[Value("serial")]
public Serial Serial { get; }

Property Value

Serial

A Serial object.

Remarks

When getting, the same instance of the Serial object will always be returned.

-Read from and write to a serial port
-Getting started with the web serial API

See also on MDN

ServiceWorker

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.

[Value("serviceWorker")]
public ServiceWorkerContainer ServiceWorker { get; }

Property Value

ServiceWorkerContainer

ServiceWorkerContainer.

Remarks

The feature may not be available in private mode.

-{{domxref("Service Worker API", "", "", "nocode")}}
-Using Service Workers

See also on MDN

Usb

The usb read-only property of the WorkerNavigator interface returns a USB object for the current document, providing access to WebUSB API functionality.

[Value("usb")]
public USB Usb { get; }

Property Value

USB

A 'USB' object.

Remarks