SearchCallback
abstract class SearchCallback
kotlin.Any | |
↳ | android.support.v4.media.MediaBrowserCompat.SearchCallback |
Callback for receiving the result of search
.
Summary
Public constructors |
|
---|---|
<init>() Callback for receiving the result of |
Public methods |
|
---|---|
open Unit |
Called when an error happens while |
open Unit |
onSearchResult(@NonNull query: String, extras: Bundle!, @NonNull items: MutableList<MediaBrowserCompat.MediaItem!>) Called when the |
Public constructors
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. |