setScreenOrientation method
Use this method to set if the device is portrait or landscape
Syntax
obj.setScreenOrientation(screenOrientation);
Parameters
- screenOrientation
- Type:ScreenOrientation
- screenOrientation
Return value
- Type: void