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

CameraSelector

class CameraSelector
kotlin.Any
   ↳ androidx.camera.core.CameraSelector

A set of requirements and priorities used to select a camera.

Summary

Nested classes

Builder for a CameraSelector.

Constants
static Int

A camera on the device facing the opposite direction as the device's screen.

static Int

A camera on the device facing the same direction as the device's screen.

Properties
static CameraSelector

A static CameraSelector that selects the default back facing camera.

static CameraSelector

A static CameraSelector that selects the default front facing camera.

Constants

LENS_FACING_BACK

static val LENS_FACING_BACK: Int

A camera on the device facing the opposite direction as the device's screen.

Value: 1

LENS_FACING_FRONT

static val LENS_FACING_FRONT: Int

A camera on the device facing the same direction as the device's screen.

Value: 0

Properties

DEFAULT_BACK_CAMERA

@NonNull static val DEFAULT_BACK_CAMERA: CameraSelector

A static CameraSelector that selects the default back facing camera.

DEFAULT_FRONT_CAMERA

@NonNull static val DEFAULT_FRONT_CAMERA: CameraSelector

A static CameraSelector that selects the default front facing camera.