Reference setShakeThreshold()

setShakeThreshold()

The setShakeThreshold() function is used to set the movement threshold for the deviceShaken() function. The default threshold is set to 30.

Examples

Syntax

setShakeThreshold(value)

Parameters

value
Number:

The threshold value

Notice any errors or typos? Please let us know. Please feel free to edit src/events/acceleration.js and open a pull request!

Related References