public enum

CameraView.CaptureMode

extends java.lang.Enum<CameraView.CaptureMode>

 java.lang.Object

↳java.lang.Enum<CameraView.CaptureMode>

↳androidx.camera.view.CameraView.CaptureMode

Overview

The capture mode used by CameraView.

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

Summary

Enum Constants
IMAGEA mode where image capture is enabled.
MIXEDA mode where both image capture and video capture are simultaneously enabled.
VIDEOA mode where video capture is enabled.
Methods
public static CameraView.CaptureModevalueOf(java.lang.String name)

public static CameraView.CaptureModevalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

IMAGE

A mode where image capture is enabled.

VIDEO

A mode where video capture is enabled.

MIXED

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

Methods

public static CameraView.CaptureMode values()

public static CameraView.CaptureMode valueOf(java.lang.String name)