MediaBrowserCompat.ItemCallback
public abstract class MediaBrowserCompat.ItemCallback
Callback for receiving the result of getItem.
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
void |
Called when the item doesn't exist or there was an error retrieving it. |
void |
Called when the item has been returned by the browser service. |
Public constructors
Public methods
onError
Added in 1.1.0
public void onError(@NonNull String itemId)
Called when the item doesn't exist or there was an error retrieving it.
onItemLoaded
Added in 1.1.0
public void onItemLoaded(MediaBrowserCompat.MediaItem item)
Called when the item has been returned by the browser service.
| Parameters | |
|---|---|
MediaBrowserCompat.MediaItem item |
The item that was returned or null if it doesn't exist. |