public abstract class

MediaBrowserCompat.ItemCallback

extends java.lang.Object

 java.lang.Object

↳androidx.media3.session.legacy.MediaBrowserCompat.ItemCallback

Overview

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

Summary

Constructors
publicItemCallback()

Methods
public voidonError(java.lang.String itemId)

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

public voidonItemLoaded(MediaBrowserCompat.MediaItem item)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public ItemCallback()

Methods

public void onItemLoaded(MediaBrowserCompat.MediaItem item)

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.

public void onError(java.lang.String itemId)

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.