The Android Developer Challenge is back! Submit your idea before December 2.

CameraView.CaptureMode

public static final enum CameraView.CaptureMode
extends Enum<CameraView.CaptureMode>

java.lang.Object
   ↳ java.lang.Enum<androidx.camera.view.CameraView.CaptureMode>
     ↳ androidx.camera.view.CameraView.CaptureMode


The capture mode used by CameraView.

This enum can be used to determine which capture mode will be enabled for CameraView.

Summary

Enum values

CameraView.CaptureMode  IMAGE

A mode where image capture is enabled. 

CameraView.CaptureMode  MIXED

A mode where both image capture and video capture are simultaneously enabled. 

CameraView.CaptureMode  VIDEO

A mode where video capture is enabled. 

Public methods

static CameraView.CaptureMode valueOf(String name)
static final CaptureMode[] values()

Inherited methods

Enum values

IMAGE

public static final CameraView.CaptureMode IMAGE

A mode where image capture is enabled.

MIXED

public static final CameraView.CaptureMode MIXED

A mode where both image capture and video capture are simultaneously enabled. Note that this mode may not be available on every device.

VIDEO

public static final CameraView.CaptureMode VIDEO

A mode where video capture is enabled.

Public methods

valueOf

public static CameraView.CaptureMode valueOf (String name)

Parameters
name String

Returns
CameraView.CaptureMode

values

public static final CaptureMode[] values ()

Returns
CaptureMode[]