Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.

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 only guarantees preview streaming when implementation mode is PreviewView.ImplementationMode.COMPATIBLE. When in PreviewView.ImplementationMode.PERFORMANCE, it is possible that preview becomes visible slightly after state is changed. For apps relying on the preview visible signal to work correctly, 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[]