screen.lockOrientation("portrait");
screen.lockOrientation("landscape");
题
I can set screen orientation on config.xml screen-orientation="portrait" or "landscape". This setting for all pages.
How i can change screen orientation from code?
解决方案
screen.lockOrientation("portrait");
screen.lockOrientation("landscape");
其他提示
screen.lockOrientation(...) and screen.unlockOrientation(...) may be used from code. See discussion here: https://developer.tizen.org/forums/web-application-development/automatic-orientation-tizen-web-application