MediaBrowserCompat.ItemCallback

Added in 1.1.0
Deprecated in 1.8.0

public abstract class MediaBrowserCompat.ItemCallback


Callback for receiving the result of getItem.

Summary

Public constructors

This method is deprecated. Deprecated in Java

Public methods

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

Public constructors

ItemCallback

Added in 1.1.0
Deprecated in 1.8.0
public ItemCallback()

Public methods

onError

Added in 1.1.0
Deprecated in 1.8.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
Deprecated in 1.8.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.