public static enum VideoSource.ConnectionStrategy extends Enum<VideoSource.ConnectionStrategy>
Enum Constant and Description |
---|
kAutoManage
Automatically connect or disconnect based on whether any sinks are
connected to this source.
|
kForceClose
Never open the connection.
|
kKeepOpen
Try to keep the connection open regardless of whether any sinks are
connected.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static VideoSource.ConnectionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VideoSource.ConnectionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VideoSource.ConnectionStrategy kAutoManage
public static final VideoSource.ConnectionStrategy kKeepOpen
public static final VideoSource.ConnectionStrategy kForceClose
public static VideoSource.ConnectionStrategy[] values()
for (VideoSource.ConnectionStrategy c : VideoSource.ConnectionStrategy.values()) System.out.println(c);
public static VideoSource.ConnectionStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()