Listener

A listener for events and incoming commands from PillarboxMediaLibrarySession.

Functions

Link copied to clipboard

Called when the available session commands are changed by session.

Link copied to clipboard
open fun onChildrenChanged(browser: PillarboxMediaBrowser, parentId: String, itemCount: Int, params: MediaLibraryService.LibraryParams?)

Called when there's a change in the parent's children after you've subscribed to the parent with subscribe.

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.

Link copied to clipboard

Called when there's change in the search result requested by the previous PillarboxMediaBrowser.search.