MediaBrowser.BrowserCallback

public static class MediaBrowser.BrowserCallback
extends MediaController.ControllerCallback

java.lang.Object
   ↳ androidx.media2.session.MediaController.ControllerCallback
     ↳ androidx.media2.session.MediaBrowser.BrowserCallback


Callback to listen events from MediaLibraryService.

Summary

Public constructors

BrowserCallback()

Public methods

void onChildrenChanged(MediaBrowser browser, String parentId, int itemCount, MediaLibraryService.LibraryParams params)

Called when there's change in the parent's children after you've subscribed to the parent with MediaBrowser.subscribe(String, MediaLibraryService.LibraryParams).

void onSearchResultChanged(MediaBrowser browser, String query, int itemCount, MediaLibraryService.LibraryParams params)

Called when there's change in the search result requested by the previous MediaBrowser.search(String, LibraryParams).

Inherited methods