added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0-beta01

VideoSupportFragmentGlueHost

public class VideoSupportFragmentGlueHost
extends PlaybackSupportFragmentGlueHost implements SurfaceHolderGlueHost

java.lang.Object
   ↳ androidx.leanback.media.PlaybackGlueHost
     ↳ androidx.leanback.app.PlaybackSupportFragmentGlueHost
       ↳ androidx.leanback.app.VideoSupportFragmentGlueHost


PlaybackGlueHost implementation the interaction between PlaybackGlue and VideoSupportFragment.

Summary

Public constructors

VideoSupportFragmentGlueHost(VideoSupportFragment fragment)

Public methods

void setSurfaceHolderCallback(SurfaceHolder.Callback callback)

Sets the SurfaceHolder.Callback on the host.

Inherited methods

Public constructors

VideoSupportFragmentGlueHost

added in version 1.0.0
public VideoSupportFragmentGlueHost (VideoSupportFragment fragment)

Parameters
fragment VideoSupportFragment

Public methods

setSurfaceHolderCallback

added in version 1.0.0
public void setSurfaceHolderCallback (SurfaceHolder.Callback callback)

Sets the 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.

Parameters
callback SurfaceHolder.Callback