getScreenOrientation method
Use this method to retrieve the secreen orientation (portrait or landscape).
Syntax
ScreenOrientation value = obj.getScreenOrientation();
Parameters
This method does not take any parameters.Return value
- Type: ScreenOrientation