@tarojs/taro-h5
Version:
Taro h5 framework
19 lines (18 loc) • 687 B
TypeScript
import Taro from '@tarojs/api';
/**
* 停止监听设备方向的变化。
*/
declare const stopDeviceMotionListening: typeof Taro.stopDeviceMotionListening;
/**
* 开始监听设备方向的变化。
*/
declare const startDeviceMotionListening: typeof Taro.startDeviceMotionListening;
/**
* 监听设备方向变化事件。
*/
declare const onDeviceMotionChange: typeof Taro.onDeviceMotionChange;
/**
* 取消监听设备方向变化事件,参数为空,则取消所有的事件监听。
*/
declare const offDeviceMotionChange: typeof Taro.offDeviceMotionChange;
export { stopDeviceMotionListening, startDeviceMotionListening, onDeviceMotionChange, offDeviceMotionChange };