# VideoFragmentGlueHost

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

*** ** * ** ***


```
class VideoFragmentGlueHost : PlaybackFragmentGlueHost, 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.PlaybackFragmentGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost) ||
|   |   | ↳ | [androidx.leanback.app.VideoFragmentGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoFragmentGlueHost) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> use `https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoSupportFragmentGlueHost`

`https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost` implementation the interaction between `https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlue` and `https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoFragment`.

## Summary

| ### Public constructors |
|---|
| `[VideoFragmentGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoFragmentGlueHost#VideoFragmentGlueHost(androidx.leanback.app.VideoFragment))(fragment: https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoFragment!)` **This function is deprecated.** Deprecated in Java |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setSurfaceHolderCallback](https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoFragmentGlueHost#setSurfaceHolderCallback(android.view.SurfaceHolder.Callback))(callback: https://developer.android.com/reference/android/view/SurfaceHolder.Callback.html!)` **This function is deprecated.** Deprecated in Java |

### Inherited functions

From [androidx.leanback.app.PlaybackFragmentGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[fadeOut](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#fadeOut())()`

**This function is deprecated.**

Call `https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost#hideControlsOverlay(boolean)`

<br />

`https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost.PlayerCallback!` `[getPlayerCallback](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#getPlayerCallback())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[hideControlsOverlay](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#hideControlsOverlay(boolean))(runAnimation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isControlsOverlayAutoHideEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#isControlsOverlayAutoHideEnabled())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isControlsOverlayVisible](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#isControlsOverlayVisible())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[notifyPlaybackRowChanged](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#notifyPlaybackRowChanged())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setControlsOverlayAutoHideEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#setControlsOverlayAutoHideEnabled(boolean))(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setHostCallback](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#setHostCallback(androidx.leanback.media.PlaybackGlueHost.HostCallback))(callback: https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost.HostCallback!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setOnActionClickedListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#setOnActionClickedListener(androidx.leanback.widget.OnActionClickedListener))(listener: https://developer.android.com/reference/kotlin/androidx/leanback/widget/OnActionClickedListener!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setOnKeyInterceptListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#setOnKeyInterceptListener(android.view.View.OnKeyListener))(onKeyListener: https://developer.android.com/reference/android/view/View.OnKeyListener.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setPlaybackRow](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#setPlaybackRow(androidx.leanback.widget.Row))(row: https://developer.android.com/reference/kotlin/androidx/leanback/widget/Row!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setPlaybackRowPresenter](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#setPlaybackRowPresenter(androidx.leanback.widget.PlaybackRowPresenter))(presenter: https://developer.android.com/reference/kotlin/androidx/leanback/widget/PlaybackRowPresenter!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setPlaybackSeekUiClient](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#setPlaybackSeekUiClient(androidx.leanback.widget.PlaybackSeekUi.Client))(client: https://developer.android.com/reference/kotlin/androidx/leanback/widget/PlaybackSeekUi.Client!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[showControlsOverlay](https://developer.android.com/reference/kotlin/androidx/leanback/app/PlaybackFragmentGlueHost#showControlsOverlay(boolean))(runAnimation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.** Deprecated in Java
From [androidx.leanback.media.PlaybackGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost) `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: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/leanback/media/PlaybackGlueHost#setControlsOverlayAutoHideEnabled(boolean)`

<br />

`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: https://developer.android.com/reference/kotlin/androidx/leanback/widget/OnActionClickedListener!)`

**This function is deprecated.** Deprecated in Java

## Public constructors

### VideoFragmentGlueHost

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

```
[VideoFragmentGlueHost](https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoFragmentGlueHost#VideoFragmentGlueHost(androidx.leanback.app.VideoFragment))(fragment: VideoFragment!)
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

## Public functions

### setSurfaceHolderCallback

```
fun [setSurfaceHolderCallback](https://developer.android.com/reference/kotlin/androidx/leanback/app/VideoFragmentGlueHost#setSurfaceHolderCallback(android.view.SurfaceHolder.Callback))(callback: SurfaceHolder.Callback!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

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