QueueEditor

interface QueueEditor

QueueEditor allows handling queue editing actions when sent by a media controller.

Functions

Link copied to clipboard
abstract fun onAddQueueItem(player: Player, description: MediaDescriptionCompat)

Called when a media controller wants to add a queue item with the given description at the end of the play queue.

abstract fun onAddQueueItem(player: Player, description: MediaDescriptionCompat, index: Int)

Called when a media controller wants to add a queue item with the given description at the specified position in the play queue

Link copied to clipboard
abstract fun onRemoveQueueItem(player: Player, description: MediaDescriptionCompat)

Called when a media controller wants to remove the first occurrence of the specified queue item with the given description in the play queue.