ButtonController

Defines the interface for managing a media control button which uses an icon fontset to present the button operation via a glyph defined by the font. Each button can have one or more states (a toggle button has two states) where each state is represented by a different glyph (text) on the button face. Each button state can be backed (managed) by business logic of some sort.

Author

Paul Michael Reilly --- pmreilly@brightcove.com

Inheritors

Functions

Link copied to clipboard
abstract fun getButton(): Button
Obtains the managed button from the controller.
Link copied to clipboard
Obtains the event emitter used to set up the controllers SDK event handling.
Link copied to clipboard
abstract fun getId(): Int
Obtains the Android resource id for the button being controlled.
Link copied to clipboard
abstract fun getManagedState(): Int
Obtains the managed state information.
Link copied to clipboard
abstract fun getProperties(): Map<String, Any>
Obtains a set of property values (name/value pairs) to emit as an optional part of handling a button action.
Link copied to clipboard
abstract fun getStateList(): List<ButtonState>
Obtain the list of button states for the button being controlled.
Link copied to clipboard
abstract fun getVisibilityState(): Int
Obtains the visibility state maintained for the button.
Link copied to clipboard
abstract fun onAccessibilityStateChanged(enabled: Boolean)
Called back on change in the accessibility state.
Link copied to clipboard
abstract fun removeListeners()
Removes any listeners set up by this button controller.
Link copied to clipboard
abstract fun syncStates()
Ensures that the controlled button is in sync with the managed state it represents.