DeviceMotionEventAcceleration

安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。

DeviceMotionEventAcceleration オブジェクトは、端末が 3 軸すべてで経験している加速度の量に関する情報を提供します。

インスタンスプロパティ

DeviceMotionEventAcceleration.x 読取専用

X 軸に沿った加速度の大きさです。

DeviceMotionEventAcceleration.y 読取専用

Y 軸に沿った加速度の大きさです。

DeviceMotionEventAcceleration.z 読取専用

Z 軸に沿った加速度の大きさです。

仕様書

Specification
DeviceOrientation Event Specification
# devicemotioneventacceleration

ブラウザーの互換性

BCD tables only load in the browser