DeviceMotionEvent: interval property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2023.

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

Thuộc tính chỉ đọc interval của giao diện DeviceMotionEvent trả về khoảng thời gian, tính bằng mili giây, mà dữ liệu được lấy từ phần cứng bên dưới. Bạn có thể dùng điều này để xác định độ chi tiết của các sự kiện chuyển động.