MediaBrowser.ItemCallback

public static abstract class MediaBrowser.ItemCallback
extends Object

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


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

Summary

Public constructors

MediaBrowser.ItemCallback()

Public methods

void onError(String mediaId)

Called there was an error retrieving it or the connected service doesn't support MediaBrowser.getItem(String, MediaBrowser.ItemCallback).

void onItemLoaded(MediaBrowser.MediaItem item)

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

Inherited methods

Public constructors

MediaBrowser.ItemCallback

added in API level 23
public MediaBrowser.ItemCallback ()

Public methods

onError

added in API level 23
public void onError (String mediaId)

Called there was an error retrieving it or the connected service doesn't support MediaBrowser.getItem(String, MediaBrowser.ItemCallback).

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

This value must never be null.

onItemLoaded

added in API level 23
public void onItemLoaded (MediaBrowser.MediaItem item)

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

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