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

ItemCallback

Added in 1.1.0
public ItemCallback()

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.

Parameters
@NonNull String itemId

The media id of the media item which could not be loaded.

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.