public static enum OrientationSensor.SCREEN_ROTATION_MODE extends java.lang.Enum<OrientationSensor.SCREEN_ROTATION_MODE>
Enum Constant and Description |
---|
FIXED_ORIENTATION
Rotation disables.
|
SENSOR_ALWAYS
Rotate always.
|
SENSOR_WHEN_ROTATION_ENABLED
Rotate when the system wide display rotation flag is enabled.
|
Modifier and Type | Method and Description |
---|---|
static OrientationSensor.SCREEN_ROTATION_MODE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OrientationSensor.SCREEN_ROTATION_MODE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrientationSensor.SCREEN_ROTATION_MODE FIXED_ORIENTATION
public static final OrientationSensor.SCREEN_ROTATION_MODE SENSOR_ALWAYS
public static final OrientationSensor.SCREEN_ROTATION_MODE SENSOR_WHEN_ROTATION_ENABLED
public static OrientationSensor.SCREEN_ROTATION_MODE valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static OrientationSensor.SCREEN_ROTATION_MODE[] values()
for (OrientationSensor.SCREEN_ROTATION_MODE c : OrientationSensor.SCREEN_ROTATION_MODE.values()) System.out.println(c);