Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想以编程方式锁定方向,以便我的应用程序屏幕仅在纵向模式下显示。我使用 Storm BB 设备。如何通过我的代码锁定它?
有人可以提示我怎么做吗?
谢谢。
您可以通过在调用UiEngineInstance.setAcceptableDirections(int)时传入特定的方向参数来将应用程序配置为仅允许特定的方向。