Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

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.COMPATIBLE 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[]