public final class CameraAspectMode
extends java.lang.Enum
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static CameraAspectMode |
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.
|
static CameraAspectMode |
ASPECT_FIT
Aspect ratio of the camera preview will be kept by letterboxing the camera preview
into the given view.
|
static android.os.Parcelable.Creator |
CREATOR |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
static CameraAspectMode |
valueOf(java.lang.String name) |
static CameraAspectMode[] |
values() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final CameraAspectMode ASPECT_FIT
public static final CameraAspectMode ASPECT_FILL
@NonNull public static final android.os.Parcelable.Creator CREATOR
public static CameraAspectMode[] values()
public static CameraAspectMode valueOf(java.lang.String name)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(@NonNull android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable