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
  • 384
  • 5
  • 16

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
  • 50,815
  • 5
  • 34
  • 59