public static enum CameraAgentFactory.CameraApi extends Enum<CameraAgentFactory.CameraApi>
Enum Constant and Description |
---|
API_1
Use the
Camera class. |
API_2
Use the
android.hardware.camera2 package. |
AUTO
Automatically select based on the device's SDK level.
|
Modifier and Type | Method and Description |
---|---|
static CameraAgentFactory.CameraApi |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CameraAgentFactory.CameraApi[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CameraAgentFactory.CameraApi AUTO
public static final CameraAgentFactory.CameraApi API_1
Camera
class.public static final CameraAgentFactory.CameraApi API_2
android.hardware.camera2
package.public static CameraAgentFactory.CameraApi[] values()
for (CameraAgentFactory.CameraApi c : CameraAgentFactory.CameraApi.values()) System.out.println(c);
public static CameraAgentFactory.CameraApi 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 null