VideoFragmentGlueHost

Added in 1.1.0
Deprecated in 1.1.0

public class VideoFragmentGlueHost extends PlaybackFragmentGlueHost implements SurfaceHolderGlueHost


PlaybackGlueHost implementation the interaction between PlaybackGlue and VideoFragment.

Summary

Public constructors

Public methods

void

Sets the android.view.SurfaceHolder.Callback on the host.

Inherited methods

From androidx.leanback.app.PlaybackFragmentGlueHost
void

This method is deprecated.

Call hideControlsOverlay

PlaybackGlueHost.PlayerCallback

Implemented by PlaybackGlueHost for responding to player events.

void
hideControlsOverlay(boolean runAnimation)

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 HostCallback callback on the host.

void

Sets the View.OnClickListener on this fragment.

void

Sets the android.view.View.OnKeyListener on the host.

void

Sets the Row that represents the information on control items that needs to be rendered.

void

Sets PlaybackRowPresenter for rendering the playback controls.

void

Interface to be implemented by UI widget to support PlaybackSeekUi.

void
showControlsOverlay(boolean runAnimation)

Show controls overlay.

From androidx.leanback.media.PlaybackGlueHost
void
setFadingEnabled(boolean enable)

This method is deprecated.

Use setControlsOverlayAutoHideEnabled

void

Sets the View.OnClickListener on this fragment.

Public constructors

VideoFragmentGlueHost

Added in 1.1.0
Deprecated in 1.1.0
public VideoFragmentGlueHost(VideoFragment fragment)

Public methods

setSurfaceHolderCallback

Added in 1.2.0-alpha04
Deprecated in 1.2.0-alpha04
public void setSurfaceHolderCallback(SurfaceHolder.Callback callback)

Sets the android.view.SurfaceHolder.Callback on the host. PlaybackGlueHost is assumed to either host the SurfaceHolder or have a reference to the component hosting it for rendering the video.