public enum CameraFacing
- Object
- Enum<CameraFacing>
- CameraFacing
ImplementsComparable<CameraFacing>
Direction a camera faces relative to the device screen.
Enum constants
FRONT | Camera on the same side as the display (selfie camera). |
BACK | Camera on the opposite side of the display (the main rear camera). |
EXTERNAL | Externally attached camera (USB, accessory). |
Methods
public static CameraFacing[] values() | |
public static CameraFacing valueOf(String name) |
Inherited methods
Enum constant details
FRONT
FRONTCamera on the same side as the display (selfie camera).
BACK
BACKCamera on the opposite side of the display (the main rear camera).
EXTERNAL
EXTERNALExternally attached camera (USB, accessory). Rare; not supported on all platforms.
Method details
values
public static CameraFacing[] values()valueOf
public static CameraFacing valueOf(String name)