SearchCallback

abstract class SearchCallback
kotlin.Any
   ↳ android.support.v4.media.MediaBrowserCompat.SearchCallback

Callback for receiving the result of #search.

Summary

Public constructors

Public methods
open Unit
onError(query: String, extras: Bundle!)

Called when an error happens while #search or the connected service doesn't support #search.

open Unit

Called when the #search finished successfully.

Public constructors

<init>

SearchCallback()

Public methods

onError

open fun onError(query: String, extras: Bundle!): Unit

Called when an error happens while #search or the connected service doesn't support #search.

Parameters
query String: The search query sent for the search request to the connected service.
extras String: The bundle of service-specific arguments sent to the connected service.

onSearchResult

open fun onSearchResult(query: String, extras: Bundle!, items: MutableList<MediaBrowserCompat.MediaItem!>): Unit

Called when the #search finished successfully.

Parameters
query String: The search query sent for the search request to the connected service.
extras String: The bundle of service-specific arguments sent to the connected service.
items String: The list of media items which contains the search result.