PreviewView.StreamState
enum PreviewView.StreamState
Definitions for the preview stream state.
Summary
Public functions |
|
|---|---|
java-static PreviewView.StreamState! |
Returns the enum constant of this type with the specified name. |
java-static Array<PreviewView.StreamState!>! |
values()Returns an array containing the constants of this enum type, in the order they're declared. |
Enum Values
STREAMING
val PreviewView.StreamState.STREAMING: PreviewView.StreamState
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 functions
valueOf
java-static fun valueOf(name: String!): PreviewView.StreamState!
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
java-static fun values(): Array<PreviewView.StreamState!>!
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 | |
|---|---|
Array<PreviewView.StreamState!>! |
an array containing the constants of this enum type, in the order they're declared |