Skip to content

HaxeExtension/extension-orientation

Repository files navigation

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

About

Set screen orientation at runtime

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages