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 | |
---|---|