-
- All Implemented Interfaces:
-
com.brightcove.player.mediacontroller.BrightcoveMediaControlRegistry
public class BrightcoveMediaControlRegistryImpl implements BrightcoveMediaControlRegistry
Provides a button controller registry where collections of button controllers are managed.
-
-
Method Summary
Modifier and Type Method Description void
clear()
Clears out the media controls and button controllers. List<ButtonController>
getButtonControllers()
Gets the list of registered button controllers. ButtonController
getButtonController(int id)
Gets a button controller for a given Android resource identifier. View
getView(int id)
Implements a getter to obtain a button widget for a given button resource id. View
getView(String resourceTag)
Implements a getter to obtain a view given the tag part of a resource id, i.e. int
getManagedState(int id)
Gets the managed state for a controller with a given button resource id. void
register(ButtonController controller)
Implements to register a given button controller. void
register(View view)
Registers a View object as a media control. void
unregister(ButtonController controller)
Unregisters a given button controller. void
unregister(View view)
Unregisters a View object as a media control. int
getId(View view)
Gets the Android resource id for a given view. List<ButtonState>
getStateList(int id)
Implements a getter for the state list associated with a given button. -
Methods inherited from class com.brightcove.player.mediacontroller.BrightcoveMediaControlRegistry
getButtonController, getId, getManagedState, getStateList, getView, getView, register, register, unregister, unregister
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
clear
void clear()
Clears out the media controls and button controllers.
-
getButtonControllers
List<ButtonController> getButtonControllers()
Gets the list of registered button controllers.
-
getButtonController
ButtonController getButtonController(int id)
Gets a button controller for a given Android resource identifier.
-
getView
View getView(int id)
Implements a getter to obtain a button widget for a given button resource id.
-
getView
View getView(String resourceTag)
Implements a getter to obtain a view given the tag part of a resource id, i.e. "@+id/tag".
-
getManagedState
int getManagedState(int id)
Gets the managed state for a controller with a given button resource id.
-
register
void register(ButtonController controller)
Implements to register a given button controller.
-
register
void register(View view)
Registers a View object as a media control. If the view is a ViewGroup, all children will be registered recursively.
- Parameters:
view
- The View to register.
-
unregister
void unregister(ButtonController controller)
Unregisters a given button controller.
- Parameters:
controller
- The given button controller.
-
unregister
void unregister(View view)
Unregisters a View object as a media control.
- Parameters:
view
- The View to unregister.
-
getStateList
List<ButtonState> getStateList(int id)
Implements a getter for the state list associated with a given button.
-
-
-
-