リファレンス deviceShaken()

deviceShaken()

deviceShaken()関数は、 デバイスの加速度X値と加速度Y値の合計の変化が 閾値を超えたときに呼び出されます。 デフォルトの閾値は30に設定されています。 閾値はsetShakeThreshold()を使用して変更できます。

実例

This page is generated from the comments in src/events/acceleration.js . Please feel free to edit it and submit a pull request!

関連するリファレンス