1

Is there a method to check the natural orientation of a device's screen in Codename One? Meaning, the default orientation regardless of the device's current rotation or current orientation. (e.g. the result should be on a galaxy tab: landscape, on a galaxy phone: portrait)

Note: Comparing getDisplayWidth/getDisplayHeight is not expedient!

Osman
  • 571
  • 7
  • 19

1 Answers1

0

I don't think there is a native API for getting the natural device orientation in any OS. Regardless, iOS only allows you to lock device orientation properly with a build hint so that wouldn't be very useful.

Shai Almog
  • 51,749
  • 5
  • 35
  • 65