public static enum Camera.OpenFailure extends java.lang.Enum<Camera.OpenFailure>
Camera
might have failed to open. Note: this list might get
extended and elaborated in the future; do not assume that the present set of errors is
exhaustive. Rather, treat any errors you do not recognize as you do OtherFailure
.Enum Constant and Description |
---|
CameraTypeNotSupported
The type of camera is not supported in the current implementation
|
Disconnected
The camera is currently disconnected
|
InternalError
An internal failure (aka a 'bug') has occurred
|
InUseOrAccessDenied
The camera is already open or security permissions prohibit us from opening it
|
None
Never a real failure; handy in code
|
OtherFailure
The open failed for an unspecified reason
|
Modifier and Type | Method and Description |
---|---|
static Camera.OpenFailure |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Camera.OpenFailure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Camera.OpenFailure None
public static final Camera.OpenFailure OtherFailure
public static final Camera.OpenFailure CameraTypeNotSupported
public static final Camera.OpenFailure InUseOrAccessDenied
public static final Camera.OpenFailure Disconnected
public static final Camera.OpenFailure InternalError
public static Camera.OpenFailure[] values()
for (Camera.OpenFailure c : Camera.OpenFailure.values()) System.out.println(c);
public static Camera.OpenFailure 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 null