UNPKG

666 BTypeScriptView Raw
1import Taro from '@tarojs/api';
2/**
3 * 停止监听加速度数据。
4 */
5export declare const stopAccelerometer: typeof Taro.stopAccelerometer;
6/**
7 * 开始监听加速度数据。
8 */
9export declare const startAccelerometer: typeof Taro.startAccelerometer;
10/**
11 * 监听加速度数据事件。频率根据 Taro.startAccelerometer() 的 interval 参数。可使用 Taro.stopAccelerometer() 停止监听。
12 */
13export declare const onAccelerometerChange: typeof Taro.onAccelerometerChange;
14/**
15 * 取消监听加速度数据事件,参数为空,则取消所有的事件监听
16 */
17export declare const offAccelerometerChange: typeof Taro.offAccelerometerChange;