# wx.onGyroscopeChange(function callback)

Start from base library version 2.3.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Not supported

Monitor gyro data change events. Frequency basis wx.startGyroscope() of interval Parameters. Can be used wx.stopGyroscope() Stop listening.

# parameter

# function callback

A callback function for gyro data change events

# parameter

# Object res
attribute type Introductions
x number x Angular velocity of shaft
and number and Angular velocity of shaft
with number with Angular velocity of shaft