-
- All Implemented Interfaces:
-
com.brightcove.player.accessibility.AccessibilityListener
,com.brightcove.player.event.Component
,com.brightcove.player.mediacontroller.buttons.ButtonController
,com.brightcove.player.mediacontroller.buttons.RemoteControlKeyState
public class PlayerOptionsButtonController extends AbstractButtonController
The default Brightcove player options button controller.
-
-
Constructor Summary
Constructors Constructor Description PlayerOptionsButtonController(Context context, BaseVideoView videoView, BrightcoveControlBar controlBar, Typeface font, Bundle bundle)
Builds a complete controller.
-
Method Summary
Modifier and Type Method Description int
getManagedState()
Obtains the managed state information. int
getVisibilityState()
Gets the maintained visibility state for a button. -
Methods inherited from class com.brightcove.player.mediacontroller.buttons.AbstractButtonController
getButton, getEventEmitter, getFont, getId, getProperties, getStateList, onAccessibilityStateChanged, onBack, onDpadCenter, onDpadDown, onDpadLeft, onDpadRight, onDpadUp, onFastForward, onHome, onMenu, onPause, onPlay, onPlayPause, onRewind, onSkipBackward, onSkipForward, setVisibility, syncStates
-
Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, removeListener, removeListeners
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
PlayerOptionsButtonController
PlayerOptionsButtonController(Context context, BaseVideoView videoView, BrightcoveControlBar controlBar, Typeface font, Bundle bundle)
Builds a complete controller.- Parameters:
context
- The given Android application context.videoView
- The SDK video view used, possibly, to determine managed state asssociated with the button.controlBar
- The layout widget to which the button will be added.font
- the font
-
-
Method Detail
-
getManagedState
int getManagedState()
Obtains the managed state information.
-
getVisibilityState
int getVisibilityState()
Gets the maintained visibility state for a button. Defaults to View.VISIBLE but can be overridden based onevents. An example is the caption button.
-
-
-
-