PlaybackFragmentGlueHost
class PlaybackFragmentGlueHost : PlaybackGlueHost, PlaybackSeekUi
| kotlin.Any | ||
| ↳ | 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 functions |
|
|---|---|
Unit |
This function is deprecated. Call |
PlaybackGlueHost.PlayerCallback! |
Implemented by PlaybackGlueHost for responding to player events. |
Unit |
Hide controls overlay. |
Boolean |
Returns true if auto hides controls overlay. |
Boolean |
Returns true if controls overlay is visible, false otherwise. |
Unit |
Notifies host about a change so it can update the view. |
Unit |
Enables or disables controls overlay auto hidden. |
Unit |
Sets the host |
Unit |
Sets the |
Unit |
Sets the |
Unit |
Sets the |
Unit |
Sets |
Unit |
Interface to be implemented by UI widget to support PlaybackSeekUi. |
Unit |
Show controls overlay. |
Inherited functions |
||
|---|---|---|
|
Public constructors
Public functions
getPlayerCallback
fungetPlayerCallback(): PlaybackGlueHost.PlayerCallback!
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
funhideControlsOverlay(runAnimation: Boolean): Unit
Hide controls overlay.
| Parameters | |
|---|---|
runAnimation: Boolean |
True to run animation, false otherwise. |
isControlsOverlayAutoHideEnabled
funisControlsOverlayAutoHideEnabled(): Boolean
Returns true if auto hides controls overlay.
| Returns | |
|---|---|
Boolean |
True if auto hiding controls overlay. |
isControlsOverlayVisible
funisControlsOverlayVisible(): Boolean
Returns true if controls overlay is visible, false otherwise.
| Returns | |
|---|---|
Boolean |
True if controls overlay is visible, false otherwise. |
| See also | |
|---|---|
showControlsOverlay |
|
hideControlsOverlay |
notifyPlaybackRowChanged
funnotifyPlaybackRowChanged(): Unit
Notifies host about a change so it can update the view.
setControlsOverlayAutoHideEnabled
funsetControlsOverlayAutoHideEnabled(enabled: Boolean): Unit
Enables or disables controls overlay auto hidden. If enabled, the view will be faded out after a time period.
| Parameters | |
|---|---|
enabled: Boolean |
True to enable auto hidden of controls overlay. |
setHostCallback
funsetHostCallback(callback: PlaybackGlueHost.HostCallback!): Unit
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
funsetOnActionClickedListener(listener: OnActionClickedListener!): Unit
Sets the View.OnClickListener on this fragment.
setOnKeyInterceptListener
funsetOnKeyInterceptListener(onKeyListener: View.OnKeyListener!): Unit
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
funsetPlaybackRow(row: Row!): Unit
Sets the Row that represents the information on control items that needs to be rendered.
setPlaybackRowPresenter
funsetPlaybackRowPresenter(presenter: PlaybackRowPresenter!): Unit
Sets PlaybackRowPresenter for rendering the playback controls.
setPlaybackSeekUiClient
funsetPlaybackSeekUiClient(client: PlaybackSeekUi.Client!): Unit
Interface to be implemented by UI widget to support PlaybackSeekUi.
showControlsOverlay
funshowControlsOverlay(runAnimation: Boolean): Unit
Show controls overlay.
| Parameters | |
|---|---|
runAnimation: Boolean |
True to run animation, false otherwise. |