CameraSelector
class CameraSelector
kotlin.Any | |
↳ | androidx.camera.core.CameraSelector |
A set of requirements and priorities used to select a camera or return a filtered set of cameras.
Summary
Nested classes | |
---|---|
Builder for a |
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 |
static CameraSelector |
A static |
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.