SensorErrorEvent

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Giao diện SensorErrorEvent của Sensor APIs cung cấp thông tin về các lỗi được ném ra bởi Sensor hoặc giao diện dẫn xuất.

Event SensorErrorEvent

Hàm tạo

SensorErrorEvent()

Tạo một đối tượng SensorErrorEvent mới.

Thuộc tính phiên bản

SensorErrorEvent.error Read only

Trả về đối tượng DOMException được truyền vào hàm tạo của sự kiện.

Thông số kỹ thuật

Specification
Generic Sensor API
# the-sensor-error-event-interface

Tương thích trình duyệt