lightbulb_outline Please take our October 2018 developer survey. Start survey
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0

MultiActionsProvider

public 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 getActions() Provided actions should be instances of MultiActionsProvider.MultiAction.

Summary

Nested classes

class MultiActionsProvider.MultiAction

MultiAction represents an action that can have multiple states. 

Public methods

abstract MultiAction[] getActions()

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

Public methods

getActions

added in version 1.0.0
public abstract MultiAction[] getActions ()

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

Returns
MultiAction[] Array of MultiAction items to be displayed for this media item row.