Commit 01511ee8 authored by Chris Scott's avatar Chris Scott

Update README.md

parent ab88653f
...@@ -301,7 +301,7 @@ bgGeo.changePace(false); // <-- Disable aggressive GPS monitoring. Engages stat ...@@ -301,7 +301,7 @@ bgGeo.changePace(false); // <-- Disable aggressive GPS monitoring. Engages stat
``` ```
####`onMotionChange(callbackFn, failureFn)` ####`onMotionChange(callbackFn, failureFn)`
Your ```callbackFn``` will be executed each time the device has changed-state between **MOVING** or **STATIONARY. The ```callbackFn``` will be provided with a ```Location``` object as the 1st param, with the usual params (```latitude, longitude, accuracy, speed, bearing, altitude```), in addition to a ```taskId``` used to signal that your callback is finished. Your ```callbackFn``` will be executed each time the device has changed-state between **MOVING** or **STATIONARY**. The ```callbackFn``` will be provided with a ```Location``` object as the 1st param, with the usual params (```latitude, longitude, accuracy, speed, bearing, altitude```), in addition to a ```taskId``` used to signal that your callback is finished.
######@param {Boolean} isMoving `false` if entered **STATIONARY** mode; `true` if entered **MOVING** mode. ######@param {Boolean} isMoving `false` if entered **STATIONARY** mode; `true` if entered **MOVING** mode.
######@param {Object} location The location at the state-change. ######@param {Object} location The location at the state-change.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment