public class BrightcoveMediaControlRegistryImpl extends java.lang.Object implements BrightcoveMediaControlRegistry
| Constructor and Description |
|---|
BrightcoveMediaControlRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears out the media controls and button controllers.
|
ButtonController |
getButtonController(int id)
Gets a button controller for a given Android resource identifier.
|
java.util.List<ButtonController> |
getButtonControllers()
Gets the list of registered button controllers.
|
int |
getId(android.view.View view)
Gets the Android resource id for a given view.
|
int |
getManagedState(int id)
Gets the managed state for a controller with a given button resource id.
|
java.util.List<ButtonState> |
getStateList(int id)
Implements a getter for the state list associated with a given button.
|
android.view.View |
getView(int id)
Implements a getter to obtain a button widget for a given button resource id.
|
android.view.View |
getView(java.lang.String resourceTag)
Implements a getter to obtain a view given the tag part of a resource id, i.e.
|
void |
register(ButtonController controller)
Implements to register a given button controller.
|
void |
register(android.view.View view)
Registers a View object as a media control.
|
public void clear()
clear in interface BrightcoveMediaControlRegistryBrightcoveMediaControlRegistry.clear()public java.util.List<ButtonController> getButtonControllers()
getButtonControllers in interface BrightcoveMediaControlRegistryBrightcoveMediaControlRegistry.getButtonControllers()public ButtonController getButtonController(int id)
getButtonController in interface BrightcoveMediaControlRegistryid - The given button identifier.BrightcoveMediaControlRegistry.getButtonController(int)public android.view.View getView(int id)
getView in interface BrightcoveMediaControlRegistryid - The Android resource identifier.BrightcoveMediaControlRegistry.getView(int)public android.view.View getView(java.lang.String resourceTag)
getView in interface BrightcoveMediaControlRegistryresourceTag - The Android resource identifier.BrightcoveMediaControlRegistry.getView(String)public int getManagedState(int id)
getManagedState in interface BrightcoveMediaControlRegistryBrightcoveMediaControlRegistry.getManagedState(int)public void register(ButtonController controller)
register in interface BrightcoveMediaControlRegistrycontroller - The given button controller.BrightcoveMediaControlRegistry.register(com.brightcove.player.mediacontroller.buttons.ButtonController)public void register(android.view.View view)
register in interface BrightcoveMediaControlRegistryview - The View to register.public int getId(android.view.View view)
getId in interface BrightcoveMediaControlRegistryview - The given media control view.BrightcoveMediaControlRegistry.getId(View)public java.util.List<ButtonState> getStateList(int id)
getStateList in interface BrightcoveMediaControlRegistryid - The given button resource id.BrightcoveMediaControlRegistry.getStateList(int)