Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

MediaBrowser

open class MediaBrowser : MediaController
kotlin.Any
   ↳ androidx.media2.session.MediaController
   ↳ androidx.media2.session.MediaBrowser

Browses media content offered by a MediaLibraryService.

Summary

Nested classes
open

Callback to listen events from MediaLibraryService.

Builder for MediaBrowser.

Public methods
open ListenableFuture<LibraryResult!>
getChildren(@NonNull parentId: String, @IntRange(0) page: Int, @IntRange(1) pageSize: Int, @Nullable params: MediaLibraryService.LibraryParams?)

Gets the list of children under the parent.

open ListenableFuture<LibraryResult!>
getItem(@NonNull mediaId: String)

Gets the media item with the given media id.

open ListenableFuture<LibraryResult!>

Gets the library root.

open ListenableFuture<LibraryResult!>
getSearchResult(@NonNull query: String, @IntRange(0) page: Int, @IntRange(1) pageSize: Int, @Nullable params: MediaLibraryService.LibraryParams?)

Gets the search result from the library service.

open ListenableFuture<LibraryResult!>
search(@NonNull query: String, @Nullable params: MediaLibraryService.LibraryParams?)

Sends a search request to the library service.

open ListenableFuture<LibraryResult!>
subscribe(@NonNull parentId: String, @Nullable params: MediaLibraryService.LibraryParams?)

Subscribes to a parent id for the change in its children.

open ListenableFuture<LibraryResult!>
unsubscribe(@NonNull parentId: String)

Unsubscribes for changes to the children of the parent, which was previously subscribed with subscribe(String, LibraryParams).

Inherited functions