Skip to content
Set screen orientation at runtime
C C++ Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dependencies/android Save orientation on android between app restarts Feb 5, 2016
extension/eightsines Updating JNI reference Jun 20, 2018
project Initial commit Jan 29, 2016
.gitignore Initial commit Jan 29, 2016
README.md README updated Oct 18, 2016
TODO.txt
haxelib.json haxelib.json updated Dec 8, 2017
include.xml

README.md

EightSines Orientation

Set screen orientation at runtime for OpenFL.

Supported targets

  • Android
  • iOS

How to use

import extension.eightsines.EsOrientation;

...

EsOrientation.setScreenOrientation(EsOrientation.ORIENTATION_PORTRAIT);
// or
EsOrientation.setScreenOrientation(EsOrientation.ORIENTATION_LANDSCAPE);
// or
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
You can’t perform that action at this time.