我可以在config.xml screen-orientation =「portrait」或「landscape」上設置屏幕方向。 此設置適用於所有頁面。如何更改屏幕方向(Tizen,Web-app)
如何從代碼更改屏幕方向?
我可以在config.xml screen-orientation =「portrait」或「landscape」上設置屏幕方向。 此設置適用於所有頁面。如何更改屏幕方向(Tizen,Web-app)
如何從代碼更改屏幕方向?
screen.lockOrientation(「portrait」);
screen.lockOrientation(「landscape」);
screen.lockOrientation(...)和screen.unlockOrientation(...)可以從代碼中使用。請參閱此處的討論:https://developer.tizen.org/forums/web-application-development/automatic-orientation-tizen-web-application