MediaBrowserCompat.SearchCallback
public abstract class MediaBrowserCompat.SearchCallback
Callback for receiving the result of search.
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
void |
Called when an error happens while |
void |
onSearchResult(Called when the |
Public constructors
Public methods
onError
Added in 1.1.0
public void onError(@NonNull String query, Bundle extras)
Called when an error happens while search or the connected service doesn't support search.
onSearchResult
Added in 1.1.0
public void onSearchResult(
@NonNull String query,
Bundle extras,
@NonNull List<MediaBrowserCompat.MediaItem> items
)
Called when the search finished successfully.