DeviceMotionEventAcceleration
利用可能性は限定的
この機能はベースラインではありません。最も広く使用されているブラウザーの一部で動作しません。
安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
DeviceMotionEventAcceleration オブジェクトは、端末が 3 軸すべてで経験している加速度の量に関する情報を提供します。
インスタンスプロパティ
DeviceMotionEventAcceleration.x読取専用-
X 軸に沿った加速度の大きさです。
DeviceMotionEventAcceleration.y読取専用-
Y 軸に沿った加速度の大きさです。
DeviceMotionEventAcceleration.z読取専用-
Z 軸に沿った加速度の大きさです。
仕様書
| 仕様書 |
|---|
| Device Orientation and Motion> # devicemotioneventacceleration> |