SearchCallback

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

Callback for receiving the result of search.

Summary

Public constructors

Callback for receiving the result of search.

Public methods

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

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

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

Called when the search finished successfully.

Public constructors

<init>

SearchCallback()

Callback for receiving the result of search.

Public methods

onError

open fun onError(@NonNull 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(@NonNull query: String, extras: Bundle!, @NonNull 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.