UNPKG

604 BTypeScriptView Raw
1import Taro from '@tarojs/api';
2/**
3 * 停止监听设备方向的变化。
4 */
5export declare const stopDeviceMotionListening: typeof Taro.stopDeviceMotionListening;
6/**
7 * 开始监听设备方向的变化。
8 */
9export declare const startDeviceMotionListening: typeof Taro.startDeviceMotionListening;
10/**
11 * 监听设备方向变化事件。
12 */
13export declare const onDeviceMotionChange: typeof Taro.onDeviceMotionChange;
14/**
15 * 取消监听设备方向变化事件,参数为空,则取消所有的事件监听。
16 */
17export declare const offDeviceMotionChange: typeof Taro.offDeviceMotionChange;