跳到主要内容

bn.startGyroscope

startGyroscope(options?): Promise<void>

description Start monitoring the gyroscope data.

example

 bn.startGyroscope()

Parameters

NameType
options?StartGyroscopeOption

Returns

Promise<void>


Interface: StartGyroscopeOption

NameTypeDescription
interval?"normal" | "game" | "ui"Monitor the execution frequency of the gyro data callback function.; game: The callback frequency for updating the game, in 20ms/second About.; ui: Apply to update UI Callback frequency of 60ms/second About.; normal: Normal callback frequency, in the 200ms/second About.