UNPKG

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