Listener

interface Listener

A listener for events and incoming commands from PillarboxMediaSession.

Inheritors

Functions

Link copied to clipboard

Called when the available session commands are changed by session.

Link copied to clipboard
open fun onCustomCommand(controller: PillarboxMediaController, command: SessionCommand, args: Bundle): ListenableFuture<SessionResult>

Called when the session sends a custom command.

Link copied to clipboard

Called when the controller is disconnected from the session. The controller becomes unavailable afterwards and this listener won't be called anymore.

Link copied to clipboard
open fun onExtrasChanged(controller: PillarboxMediaController, extras: Bundle)

Called when the session extras are set on the session side.