public static enum CameraSettings.TorchMode extends Enum<CameraSettings.TorchMode>
Modifier and Type | Method and Description |
---|---|
static CameraSettings.TorchMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CameraSettings.TorchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CameraSettings.TorchMode OFF
public static final CameraSettings.TorchMode ON
public static CameraSettings.TorchMode[] values()
for (CameraSettings.TorchMode c : CameraSettings.TorchMode.values()) System.out.println(c);
public static CameraSettings.TorchMode 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