A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/ja/docs/Web/API/LinearAccelerationSensor/LinearAccelerationSensor below:

LinearAccelerationSensor: LinearAccelerationSensor() コンストラクター - Web API

LinearAccelerationSensor: LinearAccelerationSensor() コンストラクター

Limited availability

LinearAccelerationSensor() コンストラクターは、デバイスの 3 軸それぞれにかかっている加速度の測定値を、重力の影響を除いて提供する新しい LinearAccelerationSensor オブジェクトを生成します。

構文
new LinearAccelerationSensor()
new LinearAccelerationSensor(options)
引数
options 省略可

以下のオプションがあります。

frequency

1 秒間にサンプルを何回取得したいかであり、reading イベントが呼ばれる 1 秒あたりの回数になります。整数または小数が使用でき、小数は 1 秒に 1 回未満の頻度を設定するのに用います。実際の取得頻度はデバイスハードウェアに依存するので、要求値より少なくなる可能性があります。

referenceFrame

'device' または 'screen' です。デフォルトは 'device' です。

例外
SecurityError DOMException

この機能の使用が 権限ポリシー によりブロックされました。

仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4