Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0-rc01

SurfaceHolderGlueHost

public interface SurfaceHolderGlueHost

androidx.leanback.media.SurfaceHolderGlueHost


Optional interface to be implemented by any subclass of PlaybackGlueHost that contains a SurfaceView. This will allow subclass of PlaybackGlue to setup the surface holder callback during PlaybackGlue.setHost(PlaybackGlueHost).

Summary

Public methods

abstract void setSurfaceHolderCallback(SurfaceHolder.Callback callback)

Sets the SurfaceHolder.Callback on the the host.

Public methods

setSurfaceHolderCallback

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

Sets the SurfaceHolder.Callback on the the host.

Parameters
callback SurfaceHolder.Callback