public enum CameraFacing

  1. Object
  2. Enum<CameraFacing>
  3. CameraFacing

ImplementsComparable<CameraFacing>

Direction a camera faces relative to the device screen.

Enum constants

FRONTCamera on the same side as the display (selfie camera).
BACKCamera on the opposite side of the display (the main rear camera).
EXTERNALExternally attached camera (USB, accessory).

Methods

public static CameraFacing[] values()
public static CameraFacing valueOf(String name)

Inherited methods

Enum constant details

FRONT

FRONT
Camera on the same side as the display (selfie camera).

BACK

BACK
Camera on the opposite side of the display (the main rear camera).

EXTERNAL

EXTERNAL
Externally attached camera (USB, accessory). Rare; not supported on all platforms.

Method details

values

public static CameraFacing[] values()

valueOf

public static CameraFacing valueOf(String name)