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


abstract class MultiAction : Action
   ↳ androidx.leanback.widget.Action
   ↳ androidx.leanback.widget.PlaybackControlsRow.MultiAction

Base class for an action comprised of a series of icons.


Inherited constants
Public constructors
<init>(id: Int)


Public methods
open Int

Returns the number of actions.

open Drawable!
getDrawable(index: Int)

Returns the drawable at the given index.

open Int

Returns the current index.

open String!
getLabel(index: Int)

Returns the label at the given index.

open String!

Returns the secondary label at the given index.

open Unit

Increments the index, wrapping to zero once the end is reached.

open Unit
setDrawables(drawables: Array<Drawable!>!)

Sets the array of drawables.

open Unit
setIndex(index: Int)

Sets the current index.

open Unit
setLabels(labels: Array<String!>!)

Sets the array of strings used as labels.

open Unit

Sets the array of strings used as secondary labels.

Inherited functions