MultiAction
abstract class MultiAction : Action
kotlin.Any | ||
↳ | androidx.leanback.widget.Action | |
↳ | androidx.leanback.widget.PlaybackControlsRow.MultiAction |
Base class for an action comprised of a series of icons.
Summary
Inherited constants | |
---|---|
Public constructors | |
---|---|
Constructor |
Public methods | |
---|---|
open Int |
Returns the number of actions. |
open Drawable! |
getDrawable(index: Int) Returns the drawable at the given index. |
open Int |
getIndex() Returns the current index. |
open String! |
Returns the label at the given index. |
open String! |
getSecondaryLabel(index: Int) 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 |
Sets the current index. |
open Unit |
Sets the array of strings used as labels. |
open Unit |
setSecondaryLabels(labels: Array<String!>!) Sets the array of strings used as secondary labels. |
Inherited functions | |
---|---|
Public constructors
Public methods
getSecondaryLabel
open fun getSecondaryLabel(index: Int): String!
Returns the secondary label at the given index.
nextIndex
open fun nextIndex(): Unit
Increments the index, wrapping to zero once the end is reached.
setDrawables
open fun setDrawables(drawables: Array<Drawable!>!): Unit
Sets the array of drawables. The size of the array defines the range of valid indices for this action.
setLabels
open fun setLabels(labels: Array<String!>!): Unit
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.