MediaBrowserCompat.SearchCallback

public static abstract class MediaBrowserCompat.SearchCallback
extends Object

java.lang.Object
   ↳ android.support.v4.media.MediaBrowserCompat.SearchCallback


Callback for receiving the result of MediaBrowserCompat.search(String, Bundle, MediaBrowserCompat.SearchCallback).

Summary

Public constructors

MediaBrowserCompat.SearchCallback()

Public methods

void onError(String query, Bundle extras)

Called when an error happens while MediaBrowserCompat.search(String, Bundle, MediaBrowserCompat.SearchCallback) or the connected service doesn't support MediaBrowserCompat.search(String, Bundle, MediaBrowserCompat.SearchCallback).

void onSearchResult(String query, Bundle extras, List<MediaBrowserCompat.MediaItem> items)

Called when the MediaBrowserCompat.search(String, Bundle, MediaBrowserCompat.SearchCallback) finished successfully.

Inherited methods

Public constructors

MediaBrowserCompat.SearchCallback

public MediaBrowserCompat.SearchCallback ()

Public methods

onError

public void onError (String query, 
                Bundle extras)

Called when an error happens while MediaBrowserCompat.search(String, Bundle, MediaBrowserCompat.SearchCallback) or the connected service doesn't support MediaBrowserCompat.search(String, Bundle, MediaBrowserCompat.SearchCallback).

Parameters
query String: The search query sent for the search request to the connected service.

extras Bundle: The bundle of service-specific arguments sent to the connected service.

onSearchResult

public void onSearchResult (String query, 
                Bundle extras, 
                List<MediaBrowserCompat.MediaItem> items)

Called when the MediaBrowserCompat.search(String, Bundle, MediaBrowserCompat.SearchCallback) finished successfully.

Parameters
query String: The search query sent for the search request to the connected service.

extras Bundle: The bundle of service-specific arguments sent to the connected service.

items List: The list of media items which contains the search result.