UNPKG

@tarojs/taro-h5

Version:
19 lines (18 loc) • 680 B
/// <reference types="types/api" /> import Taro from '@tarojs/api'; /** * 停止监听陀螺仪数据。 */ export declare const stopGyroscope: typeof Taro.stopGyroscope; /** * 开始监听陀螺仪数据。 */ export declare const startGyroscope: typeof Taro.startGyroscope; /** * 监听陀螺仪数据变化事件。频率根据 Taro.startGyroscope() 的 interval 参数。可以使用 Taro.stopGyroscope() 停止监听。 */ export declare const onGyroscopeChange: typeof Taro.onGyroscopeChange; /** * 取消监听陀螺仪数据变化事件,参数为空,则取消所有的事件监听。 */ export declare const offGyroscopeChange: typeof Taro.offGyroscopeChange;