Вопрос

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");

developer.tizen.org/help/index.jsp

Другие советы

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top