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, ItemCallback).

Summary

Public constructors

ItemCallback()

Public methods

void onError(String mediaId)

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

void onItemLoaded(MediaBrowser.MediaItem item)

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

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

ItemCallback

public 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, ItemCallback).

Parameters
mediaId String: The media id of the media item which could not be loaded. This value cannot 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.