public enum AlivcPreviewOrientationEnum extends java.lang.Enum<AlivcPreviewOrientationEnum>
Enum Constant and Description |
---|
ORIENTATION_LANDSCAPE_HOME_LEFT
横屏,Home键在左侧
|
ORIENTATION_LANDSCAPE_HOME_RIGHT
横屏,Home键在右侧
|
ORIENTATION_PORTRAIT
竖屏
|
Modifier and Type | Method and Description |
---|---|
int |
getOrientation()
获取枚举值
|
static AlivcPreviewOrientationEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AlivcPreviewOrientationEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlivcPreviewOrientationEnum ORIENTATION_PORTRAIT
public static final AlivcPreviewOrientationEnum ORIENTATION_LANDSCAPE_HOME_RIGHT
public static final AlivcPreviewOrientationEnum ORIENTATION_LANDSCAPE_HOME_LEFT
public static AlivcPreviewOrientationEnum[] values()
for (AlivcPreviewOrientationEnum c : AlivcPreviewOrientationEnum.values()) System.out.println(c);
public static AlivcPreviewOrientationEnum 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 int getOrientation()