public enum CameraType extends java.lang.Enum<CameraType>
| Enum Constant and Description |
|---|
BACK
The rear camera.
|
FRONT
The front camera.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getType()
Gets the camera type.
|
static CameraType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CameraType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CameraType FRONT
public static final CameraType BACK
public static CameraType[] values()
for (CameraType c : CameraType.values()) System.out.println(c);
public static CameraType 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 getType()