Use this API to start listening for gyroscope data. Listening starts automatically when the API is called; register listeners with my.onGyroscopeChange and call my.stopGyroscope to stop.
Parameters
Property
Type
Required
Description
interval
String
No
Callback frequency: game (~20ms), ui (~60ms), normal (~200ms). Default: normal
success
Function
No
Callback on success
fail
Function
No
Callback on failure. Receives error (Number, error code) and errorMessage (String)