Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

VideoFragmentGlueHost

open class VideoFragmentGlueHost : PlaybackFragmentGlueHost, SurfaceHolderGlueHost
kotlin.Any
   ↳ androidx.leanback.media.PlaybackGlueHost
   ↳ androidx.leanback.app.PlaybackFragmentGlueHost
   ↳ androidx.leanback.app.VideoFragmentGlueHost

PlaybackGlueHost implementation the interaction between PlaybackGlue and VideoFragment.

Summary

Public constructors

<init>(fragment: VideoFragment!)

Public methods

open Unit

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

Inherited functions

Public constructors

<init>

VideoFragmentGlueHost(fragment: VideoFragment!)

Public methods

setSurfaceHolderCallback

open fun setSurfaceHolderCallback(callback: Callback!): Unit

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.