Example usage for android.hardware.camera2 CameraMetadata LENS_FACING_BACK

List of usage examples for android.hardware.camera2 CameraMetadata LENS_FACING_BACK

Introduction

In this page you can find the example usage for android.hardware.camera2 CameraMetadata LENS_FACING_BACK.

Prototype

int LENS_FACING_BACK

To view the source code for android.hardware.camera2 CameraMetadata LENS_FACING_BACK.

Click Source Link

Document

The camera device faces the opposite direction as the device's screen.

Usage

From source file:com.obviousengine.android.focus.ZslFocusCamera.java

@Override
public boolean isBackFacing() {
    return characteristics.get(CameraCharacteristics.LENS_FACING) == CameraMetadata.LENS_FACING_BACK;
}