Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

MultiActionsProvider

interface MultiActionsProvider
androidx.leanback.widget.MultiActionsProvider

An interface implemented by the user if they wish to provide actions for a media item row to be displayed by an AbstractMediaItemPresenter. A media row consists of media item details together with a number of custom actions, following the media item details. Classes implementing MultiActionsProvider can define their own media data model within their derived classes.

The actions are provided by overriding MultiActionsProvider#getActions() Provided actions should be instances of MultiAction.

Summary

Nested classes

open

MultiAction represents an action that can have multiple states.

Public methods

abstract Array<MultiActionsProvider.MultiAction!>!

Should override this method in order to provide a custom set of actions for a media item row

Public methods

getActions

abstract fun getActions(): Array<MultiActionsProvider.MultiAction!>!

Should override this method in order to provide a custom set of actions for a media item row

Return
Array<MultiActionsProvider.MultiAction!>!: Array of MultiAction items to be displayed for this media item row.