Add orientation locks to the window module (DEF-2162)

Locking orientation on Android and iOS runtimes programmatically. This way user can set orientation in settings, orientation could be set based on screen, or to force lock to landscape on iPads and portrait on iPhones.

window.lock_orientation(window.ORIENTATION_PORTRAIT_LEFT)
window.lock_orientation(window.ORIENTATION_PORTRAIT_RIGHT)
window.lock_orientation(window.ORIENTATION_LANDSCAPE_LEFT)
window.lock_orientation(window.ORIENTATION_LANDSCAPE_RIGHT)
window.get_orientation()

5 Likes

+1, wait for implementations )

+1