Skip to content

sud.stopGyroscope ​

JS
    sud.stopGyroscope(Object object)

Stops listening for gyroscope data.

Calling stopGyroscope without having called startGyroscope triggers the fail callback.

Parameters

  • Object object: Input parameters, see the table below for details

Properties of object:

PropertyTypeRequiredDescription
successfunctionNoCallback function for a successful interface call
failfunctionNoCallback function for a failed interface call
completefunctionNoCallback function for the completion of the interface call (executed on both success and failure)

Parameters of the success callback function

  • Object res
PropertyTypeDescription
errMsgstring"stopGyroscope:ok"

Parameters of the fail callback function

  • Object res
PropertyTypeDescription
errMsgstringError message