PreviewView.StreamState
public enum PreviewView.StreamState
Definitions for the preview stream state.
Summary
Public methods |
|
|---|---|
static PreviewView.StreamState |
Returns the enum constant of this type with the specified name. |
static PreviewView.StreamState[] |
values()Returns an array containing the constants of this enum type, in the order they're declared. |
Enum Values
STREAMING
PreviewView.StreamState PreviewView.StreamState.STREAMING
Preview is streaming.
This state only guarantees the preview is streaming when the implementation mode is COMPATIBLE. When in 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 COMPATIBLE mode via setImplementationMode.
Public methods
valueOf
public static PreviewView.StreamState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
| Returns | |
|---|---|
PreviewView.StreamState |
the enum constant with the specified name |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if this enum type has no constant with the specified name |
values
public static PreviewView.StreamState[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
| Returns | |
|---|---|
PreviewView.StreamState[] |
an array containing the constants of this enum type, in the order they're declared |