Skip to content
Aricwithana edited this page Dec 13, 2014 · 3 revisions

By default, DMDs rotate. Orientation locks can be set on DMD load.

Uses 3rd party plugin:

https://github.com/yoik/cordova-yoik-screenorientation


Quick Calls

lockOrientation(ORIENTATION_STRING)
unlockOrientation()
orientation (ORIENTATION_STRING)

Note

screen.currOrientation

This is an added stored variable applied to the 3rd party plugin. The current ways to return the current orientation doesn't tell you if the orientation is locked or unlocked. This variable stores the current orientation name string or the string 'unlocked'.

Clone this wiki locally