Package-level declarations

Standard Action types are provided to simplify use of media-related operations that the user commonly performs, such as skipping between tracks (SkipForwardAction) or pausing (PauseAction).

Types

Link copied to clipboard

Request the current source to start fast forwarding.

Link copied to clipboard
@IviExperimental(reasons = [])
class PauseAction : Action

Request the current source to pause its playback and stay at its current position.

Link copied to clipboard
@IviExperimental(reasons = [])
class PlayAction : Action

Request the current source to start its playback at its current position.

Link copied to clipboard
@IviExperimental(reasons = [])
class PlayMediaIdAction(val mediaId: String) : Action

Request the current source to start playback of a specific mediaId.

Link copied to clipboard
@IviExperimental(reasons = [])
class PlayMediaIdFromSourceAction(val sourceId: SourceId, val mediaId: String) : Action

Request to start playback of a specific mediaId from a source with ID sourceId.

Link copied to clipboard
@IviExperimental(reasons = [])
enum RepeatMode : Enum<RepeatMode>

Playback repeat mode. This is used to send and receive repeat mode Actions.

Link copied to clipboard
@IviExperimental(reasons = [])
class RewindAction : Action

Request the current source to start rewinding.

Link copied to clipboard
@IviExperimental(reasons = [])
class SeekAction(val position: Duration) : Action

Request the current source to seek to a specific position in the current media.

Link copied to clipboard
@IviExperimental(reasons = [])
class SetActiveSourceAction(val sourceId: SourceId) : Action

Request to make a specific source active. The action will be ignored if another source is playing, and if the requested source has nothing to play.

Link copied to clipboard
@IviExperimental(reasons = [])
class SetRatingAction(val rating: IviMediaRating) : Action

Request the current source to set the rating for the current item.

Link copied to clipboard
@IviExperimental(reasons = [])
class SetRepeatModeAction(val mode: RepeatMode) : Action

Request the current source to change the repeat mode for the current media or queue.

Link copied to clipboard
@IviExperimental(reasons = [])
class SetShuffleModeAction(val mode: ShuffleMode) : Action

Request the current source to play the current queue in a specific shuffling mode.

Link copied to clipboard

Playback order mode. This is used to send and receive shuffle mode Actions.

Link copied to clipboard

Request the current source to skip to the previous item.

Link copied to clipboard

Request the current source to skip to the next item.

Link copied to clipboard
@IviExperimental(reasons = [])
class SkipToQueueItemAction(val queuePosition: Int) : Action

Request the current source to play an item at position queuePosition in its play queue.

Link copied to clipboard

Common Action IDs recognized by the stock IVI media service.

Link copied to clipboard
@IviExperimental(reasons = [])
class StopAction : Action

Request the current source to stop playback.