Action

@IviExperimental(reasons = [])
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.

The difference between Action and BrowserAction is defined mainly by the media source implementation. Actions are sent by the IVI media service and are usually related to the playback (not browsing), for example, play/pause, skip, or like the song.

An action can be a standard or a custom action:

  • Standard actions are common actions recognized by the stock IVI media service. They are supported by most sources. See StandardActionId.

  • Custom actions are all actions that are not listed as a standard action, such as liking a song. They can be used to extend the capabilities of the standard actions and are source-specific.

The distinction between a standard and a custom action is made service-side, based on the id.

See also

Parameters

id

The ID of this action. Unique for the media source it refers to. Must not be blank.

arguments

Arguments available to customize this action.

Constructors

Link copied to clipboard
fun Action(id: ActionId, arguments: Bundle? = null)
Link copied to clipboard
fun Action(id: String, arguments: Bundle? = null)

Properties

Link copied to clipboard
val arguments: Bundle? = null
Link copied to clipboard
val id: String

Functions

Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard