PlaybackFragmentGlueHost
public class PlaybackFragmentGlueHost extends PlaybackGlueHost implements PlaybackSeekUi
| java.lang.Object | ||
| ↳ | androidx.leanback.media.PlaybackGlueHost | |
| ↳ | androidx.leanback.app.PlaybackFragmentGlueHost |
VideoFragmentGlueHost |
This class is deprecated. |
PlaybackGlueHost implementation the interaction between this class and PlaybackFragment.
Summary
Public constructors |
|---|
|
Public methods |
|
|---|---|
void |
This method is deprecated. Call |
PlaybackGlueHost.PlayerCallback |
Implemented by PlaybackGlueHost for responding to player events. |
void |
Hide controls overlay. |
boolean |
Returns true if auto hides controls overlay. |
boolean |
Returns true if controls overlay is visible, false otherwise. |
void |
Notifies host about a change so it can update the view. |
void |
Enables or disables controls overlay auto hidden. |
void |
Sets the host |
void |
Sets the |
void |
Sets the |
void |
Sets the |
void |
Sets |
void |
Interface to be implemented by UI widget to support PlaybackSeekUi. |
void |
Show controls overlay. |
Inherited methods |
||
|---|---|---|
|
Public constructors
Public methods
getPlayerCallback
public PlaybackGlueHost.PlayerCallbackgetPlayerCallback()
Implemented by PlaybackGlueHost for responding to player events. Such as showing a spinning wheel progress bar when onBufferingStateChanged.
| Returns | |
|---|---|
PlaybackGlueHost.PlayerCallback |
PlayerEventCallback that Host supports, null if not supported. |
hideControlsOverlay
public void hideControlsOverlay(boolean runAnimation)Hide controls overlay.
| Parameters | |
|---|---|
boolean runAnimation |
True to run animation, false otherwise. |
isControlsOverlayAutoHideEnabled
public boolean isControlsOverlayAutoHideEnabled()Returns true if auto hides controls overlay.
| Returns | |
|---|---|
boolean |
True if auto hiding controls overlay. |
isControlsOverlayVisible
public boolean isControlsOverlayVisible()Returns true if controls overlay is visible, false otherwise.
| Returns | |
|---|---|
boolean |
True if controls overlay is visible, false otherwise. |
| See also | |
|---|---|
showControlsOverlay |
|
hideControlsOverlay |
notifyPlaybackRowChanged
public void notifyPlaybackRowChanged()Notifies host about a change so it can update the view.
setControlsOverlayAutoHideEnabled
public void setControlsOverlayAutoHideEnabled(boolean enabled)Enables or disables controls overlay auto hidden. If enabled, the view will be faded out after a time period.
| Parameters | |
|---|---|
boolean enabled |
True to enable auto hidden of controls overlay. |
setHostCallback
public voidsetHostCallback(PlaybackGlueHost.HostCallback callback)
Sets the host HostCallback callback on the host. This method should only be called by PlaybackGlue. App should not directly call this method, app should override onHostStart etc.
setOnActionClickedListener
public voidsetOnActionClickedListener(OnActionClickedListener listener)
Sets the View.OnClickListener on this fragment.
setOnKeyInterceptListener
public voidsetOnKeyInterceptListener(View.OnKeyListener onKeyListener)
Sets the android.view.View.OnKeyListener on the host. This would trigger the listener when a android.view.KeyEvent is unhandled by the host.
setPlaybackRow
public voidsetPlaybackRow(Row row)
Sets the Row that represents the information on control items that needs to be rendered.
setPlaybackRowPresenter
public voidsetPlaybackRowPresenter(PlaybackRowPresenter presenter)
Sets PlaybackRowPresenter for rendering the playback controls.
setPlaybackSeekUiClient
public voidsetPlaybackSeekUiClient(PlaybackSeekUi.Client client)
Interface to be implemented by UI widget to support PlaybackSeekUi.
showControlsOverlay
public void showControlsOverlay(boolean runAnimation)Show controls overlay.
| Parameters | |
|---|---|
boolean runAnimation |
True to run animation, false otherwise. |