The setMoveThreshold() function is used to set the movement threshold for the deviceMoved() function. The default threshold is set to 0.5.
उदाहरण
सिंटैक्स
setMoveThreshold(value)
पैरामीटर्स
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!
संबंधित संदर्भ
accelerationX
The system variable accelerationX always contains the acceleration of the device along the x axis.
accelerationY
The system variable accelerationY always contains the acceleration of the device along the y axis.
accelerationZ
The system variable accelerationZ always contains the acceleration of the device along the z axis.
deviceMoved
The deviceMoved() function is called when the device is moved by more than the threshold value along X, Y or Z axis.