Reference deviceShaken()

deviceShaken()

The deviceShaken() function is called when the device total acceleration changes of accelerationX and accelerationY values is more than the threshold value. The default threshold is set to 30. The threshold value can be changed using setShakeThreshold().

Examples

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

Related References