SuspendingMediaLibrarySessionCallback

abstract class SuspendingMediaLibrarySessionCallback(serviceScope: CoroutineScope, appEventLogger: ErrorReporter) : MediaLibraryService.MediaLibrarySession.Callback

ListenableFuture to Coroutines adapting base class for MediaLibrarySession.Callback.

Each metho is implemented like for like,

Constructors

Link copied to clipboard
constructor(serviceScope: CoroutineScope, appEventLogger: ErrorReporter)

Functions

Link copied to clipboard
open override fun onAddMediaItems(mediaSession: MediaSession, controller: MediaSession.ControllerInfo, mediaItems: MutableList<MediaItem>): ListenableFuture<MutableList<MediaItem>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onGetChildren(session: MediaLibraryService.MediaLibrarySession, browser: MediaSession.ControllerInfo, parentId: String, page: Int, pageSize: Int, params: MediaLibraryService.LibraryParams?): ListenableFuture<LibraryResult<ImmutableList<MediaItem>>>
Link copied to clipboard
open override fun onGetItem(session: MediaLibraryService.MediaLibrarySession, browser: MediaSession.ControllerInfo, mediaId: String): ListenableFuture<LibraryResult<MediaItem>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onSetRating(p0: MediaSession, p1: MediaSession.ControllerInfo, p2: Rating): ListenableFuture<SessionResult>
open fun onSetRating(p0: MediaSession, p1: MediaSession.ControllerInfo, p2: String, p3: Rating): ListenableFuture<SessionResult>
Link copied to clipboard