SensorErrorEvent Class
The error event of a Sensor (https://w3c.github.io/sensors/#the-sensor-error-event-interface).
public sealed class SensorErrorEvent : Event- Inheritance
EventSensorErrorEvent
Constructors
| Name | Description |
|---|---|
| SensorErrorEvent(string, SensorErrorEventInit) | Creates an error event. |
SensorErrorEvent(string, SensorErrorEventInit)
Sensor.csCreates an error event.
public SensorErrorEvent(string type, SensorErrorEventInit errorEventInitDict)Properties
| Name | Description |
|---|---|
| Error | Gets the error: a NotAllowedError when the permission is denied, a NotReadableError when the device has no working sensor of the type. |
Error
Sensor.csGets 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; }