CameraX.LensFacing
public
static
final
enum
CameraX.LensFacing
extends Enum<CameraX.LensFacing>
java.lang.Object | ||
↳ | java.lang.Enum<androidx.camera.core.CameraX.LensFacing> | |
↳ | androidx.camera.core.CameraX.LensFacing |
The direction the camera faces relative to device screen.
Summary
Enum values | |
---|---|
CameraX.LensFacing |
BACK
A camera on the device facing the opposite direction as the device's screen. |
CameraX.LensFacing |
FRONT
A camera on the device facing the same direction as the device's screen. |
Public methods | |
---|---|
static
CameraX.LensFacing
|
valueOf(String name)
|
static
final
LensFacing[]
|
values()
|
Inherited methods | |
---|---|
Enum values
BACK
public static final CameraX.LensFacing BACK
A camera on the device facing the opposite direction as the device's screen.
FRONT
public static final CameraX.LensFacing FRONT
A camera on the device facing the same direction as the device's screen.
Public methods
valueOf
public static CameraX.LensFacing valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
CameraX.LensFacing |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.