项目作者: HaxeExtension

项目描述 :
Set screen orientation at runtime
高级语言: C
项目地址: git://github.com/HaxeExtension/extension-orientation.git
创建时间: 2016-01-29T12:18:14Z
项目社区:https://github.com/HaxeExtension/extension-orientation

开源协议:

下载


EightSines Orientation

Set screen orientation at runtime for OpenFL.

Supported targets

  • Android
  • iOS

How to use

  1. import extension.eightsines.EsOrientation;
  2. ...
  3. EsOrientation.setScreenOrientation(EsOrientation.ORIENTATION_PORTRAIT);
  4. // or
  5. EsOrientation.setScreenOrientation(EsOrientation.ORIENTATION_LANDSCAPE);
  6. // or
  7. EsOrientation.setScreenOrientation(EsOrientation.ORIENTATION_UNSPECIFIED);

That’s all.

Additional

Related blog post

Product support

This library is finished. Currently it works well with OpenFL 3.x, but not tested with OpenFL 4.x.

Feature Support status
New features No
Non-critical bugfixes Yes
Critical bugfixes Yes
Pull requests Accepted (after review)
Issues Monitored
OpenFL version planned to support Up to 4.x, and probably later
Estimated end-of-life Up to 2018