public enum CameraApiVersion extends Enum<CameraApiVersion>
Enum Constant and Description |
---|
CAMERA_V1
The hardware level is not sufficient, the
Camera will be used |
CAMERA_V2
The hardware level is ok, the
android.hardware.camera2 will be used |
NONE
No suitable camera was found
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static CameraApiVersion |
valueOf(int apiVersion) |
static CameraApiVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CameraApiVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CameraApiVersion NONE
public static final CameraApiVersion CAMERA_V1
Camera
will be usedpublic static final CameraApiVersion CAMERA_V2
android.hardware.camera2
will be usedpublic static CameraApiVersion[] values()
for (CameraApiVersion c : CameraApiVersion.values()) System.out.println(c);
public static CameraApiVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CameraApiVersion valueOf(int apiVersion)
public int getValue()