Package com.tomtom.ivi.appsuite.media.api.common.core.actions

An Action is a command which can be sent (or launched) to the current source to be performed. Actions include standard media-related operations, but also operations specific to a single source, such as the action to "like" a track.

Check out Action and StandardActionId for further reference.

Types

Link copied to clipboard
open class Action(val id: String, val arguments: Bundle? = null) : Parcelable

A command which can be sent (or launched) to the current source so it can be performed. This is a raw command, suitable to be transmitted over IPC.

Link copied to clipboard
interface ActionId

Interface for text IDs to represent Actions. ActionIds for standard actions are recognized by the stock IVI media service. All others are merely passed on to the active media source.

Link copied to clipboard
typealias ActionList = List<Action>

Type alias for a list of Actions.

Link copied to clipboard
typealias LiveDataActionList = LiveData<ActionList>

Type alias for a LiveData containing a list of Actions.

Functions

Link copied to clipboard
fun LiveDataActionList?.hasAnyAction(vararg actions: Action): LiveData<Boolean>

Extension function to determine whether a LiveData list of Actions contains at least one of the given actions.