public enum CameraAspectMode extends java.lang.Enum<CameraAspectMode> implements android.os.Parcelable
| Enum Constant and Description |
|---|
ASPECT_FILL
Aspect ratio of the camera preview will be kept by zooming and cropping the camera preview
so that it will fill the given view.
|
ASPECT_FIT
Aspect ratio of the camera preview will be kept by letterboxing the camera preview
into the given view.
|
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<CameraAspectMode> |
CREATOR |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
static CameraAspectMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CameraAspectMode[] |
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 CameraAspectMode ASPECT_FIT
public static final CameraAspectMode ASPECT_FILL
public static final android.os.Parcelable.Creator<CameraAspectMode> CREATOR
public static CameraAspectMode[] values()
for (CameraAspectMode c : CameraAspectMode.values()) System.out.println(c);
public static CameraAspectMode 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