MultiActionsProvider

interface 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 MultiAction.

Summary

Nested types

MultiAction represents an action that can have multiple states.

Public functions

Array<MultiActionsProvider.MultiAction!>!

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

Public functions

getActions

Added in 1.1.0
fun getActions(): Array<MultiActionsProvider.MultiAction!>!

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

Returns
Array<MultiActionsProvider.MultiAction!>!

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