public final class UIDeviceOrientation extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FaceDown
The device is with the screen facing downwards and parallel to the
ground.
|
static int |
FaceUp
The device is with the screen facing upwards and parallel to the ground.
|
static int |
LandscapeLeft
The orientation is landscape with the device's home button on the left.
|
static int |
LandscapeRight
The orientation is landscape with the device's home button on the right.
|
static int |
Portrait
The orientation is portrait.
|
static int |
PortraitUpsideDown
The orientation is portrait but the device's home button on top.
|
static int |
Unknown
The orientation is not detected.
|
public static final int Unknown
public static final int Portrait
public static final int PortraitUpsideDown
public static final int LandscapeLeft
public static final int LandscapeRight
public static final int FaceUp
public static final int FaceDown
Copyright © 2020. All rights reserved.