bn.startGyroscope
▸ startGyroscope(options?): Promise<void>
description Start monitoring the gyroscope data.
example
bn.startGyroscope()
Parameters
| Name | Type |
|---|---|
options? | StartGyroscopeOption |
Returns
Promise<void>
Interface: StartGyroscopeOption
| Name | Type | Description |
|---|---|---|
| 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. |