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 current 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. It guarantees preview is visible only when implementationMode is TEXTURE_VIEW. When in SURFACE_VIEW implementationMode, it is possible that preview becomes visible slightly after state changes to STREAMING. For apps relying on the preview visible signal to be working correctly, please set TEXTURE_VIEW mode by PreviewView.setPreferredImplementationMode(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[]