Listener
Functions
Link copied to clipboard
open fun onAvailableSessionCommandsChanged(controller: PillarboxMediaController, commands: SessionCommands)
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
Called when the session extras are set on the session side.