LensFacing

class LensFacing
androidx.camera.core.LensFacing

The direction the camera faces relative to device screen.

Summary

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.

Public constructors

The direction the camera faces relative to device screen.

Constants

BACK

static val BACK: Int

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

Value: 1

FRONT

static val FRONT: Int

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

Value: 0

Public constructors

<init>

LensFacing()

The direction the camera faces relative to device screen.