title: Taro.offDeviceMotionChange(callback)

sidebar_label: offDeviceMotionChange

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

Reference

Type

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

Parameters

Property Type Description
callback (…args: any[]) => any The callback function for the device orientation change event.

API Support

API WeChat Mini-Program H5 React Native
Taro.offDeviceMotionChange ✔️ ✔️