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 |
Builder for |
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!> |
Gets the media item with the given media id. |
open ListenableFuture<LibraryResult!> |
getLibraryRoot(@Nullable params: MediaLibraryService.LibraryParams?) 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 |
Inherited functions | |
---|---|