Android 12 Developer Preview is here! Try it out, and give us your feedback!

MediaControllerGlue

abstract class MediaControllerGlue : PlaybackControlGlue
kotlin.Any
   ↳ androidx.leanback.media.PlaybackGlue
   ↳ androidx.leanback.media.PlaybackControlGlue
   ↳ androidx.leanback.media.MediaControllerGlue

A helper class for implementing a glue layer for MediaControllerCompat.

Summary

Inherited constants
Public constructors
<init>(context: Context!, fastForwardSpeeds: IntArray!, rewindSpeeds: IntArray!)

Constructor for the glue.

Public methods
open Unit

Attaches to the given media controller.

open Unit

Detaches from the media controller.

open Int

open Int

open Drawable!

MediaControllerCompat!

Returns the media controller currently attached.

open Int

open CharSequence!

open CharSequence!

open Long

open Boolean

open Boolean

open Unit

open Unit

open Unit
play(speed: Int)

open Unit

Inherited functions