SensorErrorEvent Class

The error event of a Sensor (https://w3c.github.io/sensors/#the-sensor-error-event-interface).

public sealed class SensorErrorEvent : Event
Inheritance
Event SensorErrorEvent

Constructors

NameDescription
SensorErrorEvent(string, SensorErrorEventInit)Creates an error event.

SensorErrorEvent(string, SensorErrorEventInit)

Sensor.cs

Creates an error event.

public SensorErrorEvent(string type, SensorErrorEventInit errorEventInitDict)

Properties

NameDescription
ErrorGets the error: a NotAllowedError when the permission is denied, a NotReadableError when the device has no working sensor of the type.

Gets the error: a NotAllowedError when the permission is denied, a NotReadableError when the device has no working sensor of the type.

public DomException Error { get; }