Google is committed to advancing racial equity for Black communities. See how.

PreviewView.StreamState

public static final enum PreviewView.StreamState
extends Enum<PreviewView.StreamState>

java.lang.Object
   ↳ java.lang.Enum<androidx.camera.view.PreviewView.StreamState>
     ↳ androidx.camera.view.PreviewView.StreamState


Definitions for the preview stream state.

Summary

Enum values

PreviewView.StreamState  IDLE

Preview is not visible yet. 

PreviewView.StreamState  STREAMING

Preview is streaming. 

Public methods

static PreviewView.StreamState valueOf(String name)
static final StreamState[] values()

Inherited methods

Enum values

IDLE

public static final PreviewView.StreamState IDLE

Preview is not visible yet.

STREAMING

public static final PreviewView.StreamState 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.PERFORMANCE mode via PreviewView.setImplementationMode(PreviewView.ImplementationMode).

Public methods

valueOf

public static PreviewView.StreamState valueOf (String name)

Parameters
name String

Returns
PreviewView.StreamState

values

public static final StreamState[] values ()

Returns
StreamState[]