public class PlayerControlConfig
This is configuration class for optional control's features.
Use the class PlayerControlConfig.Builder
for creating a config object.
class PlayerControlConfig.Builder
Modifier and Type | Class and Description |
---|---|
static class |
PlayerControlConfig.Builder
Builder class for creating a control config object.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_CONTROLS_URL |
static java.lang.String |
KEY_PLUGINS |
static java.lang.String |
KEY_UI |
static int |
UI_FLAG_DEFAULT |
static int |
UI_FLAG_NO_CONTROLS |
static int |
UI_FLAG_NO_FULLSCREEN |
static int |
UI_FLAG_NO_MUTE |
static int |
UI_FLAG_NO_VOLUME_CONTROL |
static int |
UI_FLAG_USE_DRAG_HANDLE |
static int |
UI_FLAG_USE_PLAY_2 |
static int |
UI_FLAG_USE_PLAY_3 |
static int |
UI_FLAG_USE_THIN_CONTROL_BAR |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String key)
Checks if config contains a key
|
java.lang.Object |
get(java.lang.String key)
Gets value by key
|
java.util.Map<java.lang.String,java.lang.Object> |
getAll()
Gets all values
|
void |
set(java.lang.String key,
java.lang.Object value)
Sets value for a key
|
@NotNull public static java.lang.String KEY_CONTROLS_URL
@NotNull public static java.lang.String KEY_UI
@NotNull public static java.lang.String KEY_PLUGINS
public static int UI_FLAG_NO_FULLSCREEN
public static int UI_FLAG_NO_VOLUME_CONTROL
public static int UI_FLAG_NO_MUTE
public static int UI_FLAG_USE_DRAG_HANDLE
public static int UI_FLAG_USE_PLAY_2
public static int UI_FLAG_USE_PLAY_3
public static int UI_FLAG_USE_THIN_CONTROL_BAR
public static int UI_FLAG_NO_CONTROLS
public static int UI_FLAG_DEFAULT
public boolean contains(@NotNull java.lang.String key)
Checks if config contains a key
@Nullable public java.lang.Object get(@NotNull java.lang.String key)
Gets value by key
@Nullable public java.util.Map<java.lang.String,java.lang.Object> getAll()
Gets all values
public void set(@NotNull java.lang.String key, @NotNull java.lang.Object value)
Sets value for a key