sud.stopGyroscope
JS
sud.stopGyroscope(Object object)Stops listening for gyroscope data.
Calling
stopGyroscopewithout having calledstartGyroscopetriggers the fail callback.
Parameters
- Object object: Input parameters, see the table below for details
Properties of object:
| Property | Type | Required | Description |
|---|---|---|---|
| success | function | No | Callback function for a successful interface call |
| fail | function | No | Callback function for a failed interface call |
| complete | function | No | Callback function for the completion of the interface call (executed on both success and failure) |
Parameters of the success callback function
- Object res
| Property | Type | Description |
|---|---|---|
| errMsg | string | "stopGyroscope:ok" |
Parameters of the fail callback function
- Object res
| Property | Type | Description |
|---|---|---|
| errMsg | string | Error message |
