public abstract static class MediaBrowser.ItemCallback extends Object
MediaBrowser.getItem(java.lang.String, android.media.browse.MediaBrowser.ItemCallback)
.Constructor and Description |
---|
ItemCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onError(String itemId)
Called when the item doesn't exist or there was an error retrieving it.
|
void |
onItemLoaded(MediaBrowser.MediaItem item)
Called when the item has been returned by the browser service.
|
public void onItemLoaded(MediaBrowser.MediaItem item)
item
- The item that was returned or null if it doesn't exist.public void onError(String itemId)
itemId
- The media id of the media item which could not be loaded.