Skip to main content
Use this API to start listening for changes in the device’s orientation. Register listeners with my.onDeviceMotionChange.

Parameters

Error Codes

Code Example

my.onDeviceMotionChange

Listen for orientation changes

my.stopDeviceMotionListening

Stop listening