Get Front App Orientation (device.front_orien)
Declaration
orien = device.front_orien()
Returns
- orien
Integer. Screen orientation of the foreground app:
0Home at bottom (portrait)
1Home at right (landscape)
2Home at left (landscape)
3Home at top (portrait, upside down)
4Failed to retrieve
Example
sys.toast('Toast shows with the front app orientation', device.front_orien())
Note: Uses sys.toast