# VideoSupportFragmentGlueHost

# VideoSupportFragmentGlueHost

Artifact:[androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback)  
[View Source](https://cs.android.com/search?q=file:androidx/leanback/app/VideoSupportFragmentGlueHost.java+class:androidx.leanback.app.VideoSupportFragmentGlueHost)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/leanback/app/VideoSupportFragmentGlueHost "View this page in Java")

<br />

```
class VideoSupportFragmentGlueHost : PlaybackSupportFragmentGlueHost, SurfaceHolderGlueHost
```

<br />

|---|---|---|---------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                                                               ||||
| ↳ | [androidx.leanback.media.PlaybackGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost)                           |||
|   | ↳ | [androidx.leanback.app.PlaybackSupportFragmentGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost) ||
|   |   | ↳ | [androidx.leanback.app.VideoSupportFragmentGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoSupportFragmentGlueHost) |

*** ** * ** ***

[PlaybackGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost)implementation the interaction between[PlaybackGlue](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlue)and[VideoSupportFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoSupportFragment).

## Summary

|                                                                                                                                                           ### Public constructors                                                                                                                                                            |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [VideoSupportFragmentGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoSupportFragmentGlueHost#VideoSupportFragmentGlueHost(androidx.leanback.app.VideoSupportFragment))`(fragment: `[VideoSupportFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoSupportFragment)`!)` |

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [setSurfaceHolderCallback](https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoSupportFragmentGlueHost#setSurfaceHolderCallback(android.view.SurfaceHolder.Callback))`(callback: `[SurfaceHolder.Callback](https://developer.android.com/reference/android/view/SurfaceHolder.Callback.html)`!)` Sets the[android.view.SurfaceHolder.Callback](https://developer.android.com/reference/android/view/SurfaceHolder.Callback.html)on the host. |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.leanback.media.PlaybackGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost) |-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | ~~[setFadingEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost#setFadingEnabled(boolean))~~`(enable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` **This function is deprecated.** Use[setControlsOverlayAutoHideEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost#setControlsOverlayAutoHideEnabled(boolean)) <br />                 | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [setOnActionClickedListener](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost#setOnActionClickedListener(androidx.leanback.widget.OnActionClickedListener))`(listener: `[OnActionClickedListener](https://developer.android.com/reference/kotlin/androidx/leanback/widget/OnActionClickedListener)`!)` Sets the[View.OnClickListener](https://developer.android.com/reference/android/view/View.OnClickListener.html)on this fragment. |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| From[androidx.leanback.app.PlaybackSupportFragmentGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost) |----------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                | [fadeOut](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#fadeOut())`()` **This function is deprecated.** Call[hideControlsOverlay](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost#hideControlsOverlay(boolean)) <br />                                                                                                                                                                                       | | [PlaybackGlueHost.PlayerCallback](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost.PlayerCallback)`!` | [getPlayerCallback](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#getPlayerCallback())`()` Implemented by PlaybackGlueHost for responding to player events.                                                                                                                                                                                                                                                                                          | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                | [hideControlsOverlay](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#hideControlsOverlay(boolean))`(runAnimation: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Hide controls overlay.                                                                                                                                                                                                                      | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                          | [isControlsOverlayAutoHideEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#isControlsOverlayAutoHideEnabled())`()` Returns true if auto hides controls overlay.                                                                                                                                                                                                                                                                                | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                          | [isControlsOverlayVisible](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#isControlsOverlayVisible())`()` Returns true if controls overlay is visible, false otherwise.                                                                                                                                                                                                                                                                               | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                | [notifyPlaybackRowChanged](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#notifyPlaybackRowChanged())`()` Notifies host about a change so it can update the view.                                                                                                                                                                                                                                                                                     | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                | [setControlsOverlayAutoHideEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#setControlsOverlayAutoHideEnabled(boolean))`(enabled: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Enables or disables controls overlay auto hidden.                                                                                                                                                                    | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                | [setHostCallback](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#setHostCallback(androidx.leanback.media.PlaybackGlueHost.HostCallback))`(callback: `[PlaybackGlueHost.HostCallback](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost.HostCallback)`!)` Sets the host[HostCallback](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost.HostCallback)callback on the host. | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                | [setOnActionClickedListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#setOnActionClickedListener(androidx.leanback.widget.OnActionClickedListener))`(listener: `[OnActionClickedListener](https://developer.android.com/reference/kotlin/androidx/leanback/widget/OnActionClickedListener)`!)` Sets the[View.OnClickListener](https://developer.android.com/reference/android/view/View.OnClickListener.html)on this fragment.                  | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                | [setOnKeyInterceptListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#setOnKeyInterceptListener(android.view.View.OnKeyListener))`(onKeyListener: `[View.OnKeyListener](https://developer.android.com/reference/android/view/View.OnKeyListener.html)`!)` Sets the[android.view.View.OnKeyListener](https://developer.android.com/reference/android/view/View.OnKeyListener.html)on the host.                                                    | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                | [setPlaybackRow](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#setPlaybackRow(androidx.leanback.widget.Row))`(row: `[Row](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Row)`!)` Sets the[Row](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Row)that represents the information on control items that needs to be rendered.                                                                     | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                | [setPlaybackRowPresenter](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#setPlaybackRowPresenter(androidx.leanback.widget.PlaybackRowPresenter))`(presenter: `[PlaybackRowPresenter](https://developer.android.com/reference/kotlin/androidx/leanback/widget/PlaybackRowPresenter)`!)` Sets[PlaybackRowPresenter](https://developer.android.com/reference/kotlin/androidx/leanback/widget/PlaybackRowPresenter)for rendering the playback controls.   | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                | [setPlaybackSeekUiClient](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#setPlaybackSeekUiClient(androidx.leanback.widget.PlaybackSeekUi.Client))`(client: `[PlaybackSeekUi.Client](https://developer.android.com/reference/kotlin/androidx/leanback/widget/PlaybackSeekUi.Client)`!)` Interface to be implemented by UI widget to support PlaybackSeekUi.                                                                                            | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                | [showControlsOverlay](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackSupportFragmentGlueHost#showControlsOverlay(boolean))`(runAnimation: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Show controls overlay.                                                                                                                                                                                                                      | |

## Public constructors

### VideoSupportFragmentGlueHost

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
VideoSupportFragmentGlueHost(fragment: VideoSupportFragment!)
```  

## Public functions

### setSurfaceHolderCallback

```
fun setSurfaceHolderCallback(callback: SurfaceHolder.Callback!): Unit
```

Sets the[android.view.SurfaceHolder.Callback](https://developer.android.com/reference/android/view/SurfaceHolder.Callback.html)on the host.[PlaybackGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost)is assumed to either host the[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html)or have a reference to the component hosting it for rendering the video.