added in version 24.1.0
belongs to Maven artifact com.android.support:support-media-compat:28.0.0-alpha1

MediaBrowserCompat.ItemCallback

public static abstract class MediaBrowserCompat.ItemCallback
extends Object

java.lang.Object
   ↳ android.support.v4.media.MediaBrowserCompat.ItemCallback


Callback for receiving the result of getItem(String, MediaBrowserCompat.ItemCallback).

Summary

Public constructors

MediaBrowserCompat.ItemCallback()

Public methods

void onError(String itemId)

Called when the item doesn't exist or there was an error retrieving it.

void onItemLoaded(MediaBrowserCompat.MediaItem item)

Called when the item has been returned by the browser service.

Inherited methods

From class java.lang.Object

Public constructors

MediaBrowserCompat.ItemCallback

added in version 24.1.0
MediaBrowserCompat.ItemCallback ()

Public methods

onError

added in version 24.1.0
void onError (String itemId)

Called when the item doesn't exist or there was an error retrieving it.

Parameters
itemId String: The media id of the media item which could not be loaded.

onItemLoaded

added in version 24.1.0
void onItemLoaded (MediaBrowserCompat.MediaItem item)

Called when the item has been returned by the browser service.

Parameters
item MediaBrowserCompat.MediaItem: The item that was returned or null if it doesn't exist.