Skip to main content
Version: 3.x

Taro.offDeviceMotionChange(callback)

Stops listening for device orientation change events. If the parameter is empty, all event listening is stopped.

Reference

Type

(callback: (...args: any[]) => any) => void

Parameters

PropertyTypeDescription
callback(...args: any[]) => anyThe callback function for the device orientation change event.

API Support

APIWeChat Mini-ProgramH5React Native
Taro.offDeviceMotionChange✔️✔️