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
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 |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-11-11 UTC.