public enum

PreviewView.StreamState

extends java.lang.Enum<PreviewView.StreamState>

 java.lang.Object

↳java.lang.Enum<PreviewView.StreamState>

↳androidx.camera.view.PreviewView.StreamState

Overview

Definitions for the preview stream state.

Summary

Enum Constants
IDLEPreview is not visible yet.
STREAMINGPreview is streaming.
Methods
public static PreviewView.StreamStatevalueOf(java.lang.String name)

public static PreviewView.StreamStatevalues()

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

IDLE

Preview is not visible yet.

STREAMING

Preview is streaming.

This state only guarantees the preview is streaming when the implementation mode is PreviewView.ImplementationMode.COMPATIBLE. When in PreviewView.ImplementationMode.PERFORMANCE mode, it is possible that the preview becomes visible slightly after the state has changed. For apps requiring a precise signal for when the preview starts, please set PreviewView.ImplementationMode.COMPATIBLE mode via PreviewView.setImplementationMode(PreviewView.ImplementationMode).

Methods

public static PreviewView.StreamState values()

public static PreviewView.StreamState valueOf(java.lang.String name)