Android APIs
public static abstract class

MediaBrowser.ItemCallback

extends Object
java.lang.Object
   ↳ android.media.browse.MediaBrowser.ItemCallback

Class Overview

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

Summary

Public Constructors
MediaBrowser.ItemCallback()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MediaBrowser.ItemCallback ()

Added in API level 23

Public Methods

public void onError (String itemId)

Added in API level 23

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

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

public void onItemLoaded (MediaBrowser.MediaItem item)

Added in API level 23

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

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