public enum CameraType extends java.lang.Enum<CameraType> implements android.os.Parcelable
| Enum Constant and Description |
|---|
CAMERA_BACKFACE
Will use device's back facing camera, if it exists.
|
CAMERA_DEFAULT
Will use device's default camera.
|
CAMERA_FRONTFACE
Will use device's frontfacing camera, if it exists.
|
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<CameraType> |
CREATOR |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
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.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final CameraType CAMERA_DEFAULT
public static final CameraType CAMERA_BACKFACE
public static final CameraType CAMERA_FRONTFACE
public static final android.os.Parcelable.Creator<CameraType> CREATOR
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 describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable