Skip to main content
Use this API to stop listening for screen orientation changes that were registered with my.onScreenOrientationChange().

Parameters

Code Example

Remove All Listeners

Remove Specific Listener

Toggle Orientation Listener

Pass the same callback function reference to my.offScreenOrientationChange() that was used with my.onScreenOrientationChange() to remove only that specific listener.

my.onScreenOrientationChange

Listen for orientation changes

my.getScreenOrientation

Get current orientation