Google is committed to advancing racial equity for Black communities. See how.

CameraConfig.FacingDirection

public static final enum CameraConfig.FacingDirection

Describes the direction a camera looks relative to the device. Used by CameraConfig.getFacingDirection().

Inherited Methods

Enum Values

public static final CameraConfig.FacingDirection BACK

Back-facing (world) camera (away from the user).

Available on all ARCore supported devices.

When used as a camera filter, via CameraConfigFilter.setFacingDirection(CameraConfig.FacingDirection), filters for camera configs that use a back-facing (world) camera.

public static final CameraConfig.FacingDirection FRONT

Front-facing (selfie) camera (toward the user).

See ARCore supported devices for available camera configs by device.

To limit distribution of your app to only devices that have a front-facing camera, use uses-feature with android.hardware.camera.

When used as a camera filter, via CameraConfigFilter.setFacingDirection(CameraConfig.FacingDirection), filters for camera configs that use a front-facing (selfie) camera.

To create a session using the front-facing (selfie) camera, use Session.setCameraConfig(CameraConfig) to set a front-facing (selfie) camera config retrieved from Session.getSupportedCameraConfigs(CameraConfigFilter).