-
public interface BrightcoveMediaControlRegistry
Defines the interface for managing a collection of controllers for media control buttons which use an icon fontset to present the button operation via a glyph defined by the font.
-
-
Method Summary
Modifier and Type Method Description abstract void
clear()
Clears the registry of all media controls and any button controllers. abstract List<ButtonController>
getButtonControllers()
Gets a list of all registered button controllers. abstract ButtonController
getButtonController(int id)
Gets a particular button controller for a given button identifier. abstract int
getManagedState(int id)
Obtain the managed state information from the controller with a given Android resource id. abstract View
getView(int id)
Gets a media control view with a given resource id. abstract View
getView(String resourceTag)
Gets a media control view with a given resource tag (the last portion of the textual resource id,e.g. abstract int
getId(View view)
Maps a media control view to a resource identifier. abstract List<ButtonState>
getStateList(int id)
Implements a getter for the state list associated with a given button. abstract void
register(ButtonController controller)
Registers a given button controller. abstract void
register(View control)
Registers a media control. abstract void
unregister(ButtonController controller)
Unregisters a given button controller. abstract void
unregister(View control)
Unregisters a media control. -
-
Method Detail
-
clear
abstract void clear()
Clears the registry of all media controls and any button controllers.
-
getButtonControllers
abstract List<ButtonController> getButtonControllers()
Gets a list of all registered button controllers.
-
getButtonController
abstract ButtonController getButtonController(int id)
Gets a particular button controller for a given button identifier.
- Parameters:
id
- The given button identifier.
-
getManagedState
abstract int getManagedState(int id)
Obtain the managed state information from the controller with a given Android resource id.
-
getView
abstract View getView(int id)
Gets a media control view with a given resource id.
- Parameters:
id
- The Android resource identifier.
-
getView
abstract View getView(String resourceTag)
Gets a media control view with a given resource tag (the last portion of the textual resource id,e.g. "@+id/tag").
- Parameters:
resourceTag
- The Android resource identifier.
-
getId
abstract int getId(View view)
Maps a media control view to a resource identifier.
- Parameters:
view
- The given media control view.
-
getStateList
abstract List<ButtonState> getStateList(int id)
Implements a getter for the state list associated with a given button.
- Parameters:
id
- The given button resource id.
-
register
abstract void register(ButtonController controller)
Registers a given button controller.
- Parameters:
controller
- The given button controller.
-
register
abstract void register(View control)
Registers a media control.
- Parameters:
control
- The given media control.
-
unregister
abstract void unregister(ButtonController controller)
Unregisters a given button controller.
- Parameters:
controller
- The given button controller.
-
unregister
abstract void unregister(View control)
Unregisters a media control.
- Parameters:
control
- The given media control.
-
-
-
-