public static enum Constants.ScreenOrientation extends java.lang.Enum<Constants.ScreenOrientation>
| 枚举常量和说明 |
|---|
behind |
fullSensor |
fullUser |
landscape |
locked |
nosensor |
portrait |
reverseLandscape |
reversePortrait |
sensor |
sensorLandscape |
sensorPortrait |
unspecified |
user |
userLandscape |
userPortrait |
| 限定符和类型 | 方法和说明 |
|---|---|
static Constants.ScreenOrientation |
valueOf(int value) |
static Constants.ScreenOrientation |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Constants.ScreenOrientation[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Constants.ScreenOrientation behind
public static final Constants.ScreenOrientation fullSensor
public static final Constants.ScreenOrientation fullUser
public static final Constants.ScreenOrientation landscape
public static final Constants.ScreenOrientation locked
public static final Constants.ScreenOrientation nosensor
public static final Constants.ScreenOrientation portrait
public static final Constants.ScreenOrientation reverseLandscape
public static final Constants.ScreenOrientation reversePortrait
public static final Constants.ScreenOrientation sensor
public static final Constants.ScreenOrientation sensorLandscape
public static final Constants.ScreenOrientation sensorPortrait
public static final Constants.ScreenOrientation unspecified
public static final Constants.ScreenOrientation user
public static final Constants.ScreenOrientation userLandscape
public static final Constants.ScreenOrientation userPortrait
public static Constants.ScreenOrientation[] values()
for (Constants.ScreenOrientation c : Constants.ScreenOrientation.values()) System.out.println(c);
public static Constants.ScreenOrientation valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public static Constants.ScreenOrientation valueOf(int value)