public abstract class

PlaybackControlsRow.MultiAction

extends Action

 java.lang.Object

androidx.leanback.widget.Action

↳androidx.leanback.widget.PlaybackControlsRow.MultiAction

Subclasses:

PlaybackControlsRow.PlayPauseAction, PlaybackControlsRow.FastForwardAction, PlaybackControlsRow.RewindAction, PlaybackControlsRow.ThumbsAction, PlaybackControlsRow.ThumbsUpAction, PlaybackControlsRow.ThumbsDownAction, PlaybackControlsRow.RepeatAction, PlaybackControlsRow.ShuffleAction, PlaybackControlsRow.HighQualityAction, PlaybackControlsRow.ClosedCaptioningAction

Overview

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

Summary

Fields
from ActionNO_ID
Constructors
publicMultiAction(int id)

Constructor

Methods
public intgetActionCount()

Returns the number of actions.

public DrawablegetDrawable(int index)

Returns the drawable at the given index.

public intgetIndex()

Returns the current index.

public java.lang.StringgetLabel(int index)

Returns the label at the given index.

public java.lang.StringgetSecondaryLabel(int index)

Returns the secondary label at the given index.

public voidnextIndex()

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

public voidsetDrawables(Drawable drawables[])

Sets the array of drawables.

public voidsetIndex(int index)

Sets the current index.

public voidsetLabels(java.lang.String labels[])

Sets the array of strings used as labels.

public voidsetSecondaryLabels(java.lang.String labels[])

Sets the array of strings used as secondary labels.

from ActionaddKeyCode, getIcon, getId, getLabel1, getLabel2, removeKeyCode, respondsToKeyCode, setIcon, setId, setLabel1, setLabel2, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructors

public MultiAction(int id)

Constructor

Parameters:

id: The id of the Action.

Methods

public void setDrawables(Drawable drawables[])

Sets the array of drawables. The size of the array defines the range of valid indices for this action.

public void setLabels(java.lang.String labels[])

Sets the array of strings used as labels. The size of the array defines the range of valid indices for this action. The labels are used to define the accessibility content description unless secondary labels are provided.

public void setSecondaryLabels(java.lang.String labels[])

Sets the array of strings used as secondary labels. These labels are used in place of the primary labels for accessibility content description only.

public int getActionCount()

Returns the number of actions.

public Drawable getDrawable(int index)

Returns the drawable at the given index.

public java.lang.String getLabel(int index)

Returns the label at the given index.

public java.lang.String getSecondaryLabel(int index)

Returns the secondary label at the given index.

public void nextIndex()

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

public void setIndex(int index)

Sets the current index.

public int getIndex()

Returns the current index.