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,
Functions
Link copied to clipboard
open override fun onAddMediaItems(mediaSession: MediaSession, controller: MediaSession.ControllerInfo, mediaItems: MutableList<MediaItem>): ListenableFuture<MutableList<MediaItem>>
Link copied to clipboard
open fun onConnect(p0: MediaSession, p1: MediaSession.ControllerInfo): MediaSession.ConnectionResult
Link copied to clipboard
open fun onCustomCommand(p0: MediaSession, p1: MediaSession.ControllerInfo, p2: SessionCommand, p3: Bundle): ListenableFuture<SessionResult>
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
open override fun onGetLibraryRoot(session: MediaLibraryService.MediaLibrarySession, browser: MediaSession.ControllerInfo, params: MediaLibraryService.LibraryParams?): ListenableFuture<LibraryResult<MediaItem>>
Link copied to clipboard
open fun onGetSearchResult(p0: MediaLibraryService.MediaLibrarySession, p1: MediaSession.ControllerInfo, p2: String, @IntRange(from = 0) p3: Int, @IntRange(from = 1) p4: Int, @Nullable p5: MediaLibraryService.LibraryParams?): ListenableFuture<LibraryResult<ImmutableList<MediaItem>>>
Link copied to clipboard
Link copied to clipboard
open fun onPlaybackResumption(p0: MediaSession, p1: MediaSession.ControllerInfo): ListenableFuture<MediaSession.MediaItemsWithStartPosition>
Link copied to clipboard
Link copied to clipboard
open fun onSearch(p0: MediaLibraryService.MediaLibrarySession, p1: MediaSession.ControllerInfo, p2: String, @Nullable p3: MediaLibraryService.LibraryParams?): ListenableFuture<LibraryResult<Void>>
Link copied to clipboard
open fun onSetMediaItems(p0: MediaSession, p1: MediaSession.ControllerInfo, p2: MutableList<MediaItem>, p3: Int, p4: Long): ListenableFuture<MediaSession.MediaItemsWithStartPosition>
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
open fun onSubscribe(p0: MediaLibraryService.MediaLibrarySession, p1: MediaSession.ControllerInfo, p2: String, @Nullable p3: MediaLibraryService.LibraryParams?): ListenableFuture<LibraryResult<Void>>
Link copied to clipboard
open fun onUnsubscribe(p0: MediaLibraryService.MediaLibrarySession, p1: MediaSession.ControllerInfo, p2: String): ListenableFuture<LibraryResult<Void>>