Most visited

Recently visited

Added in API level 23

MediaBrowser.ItemCallback

public static abstract class MediaBrowser.ItemCallback
extends Object

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


回调接收 getItem(String, MediaBrowser.ItemCallback)的结果。

Summary

Public constructors

MediaBrowser.ItemCallback()

Public methods

void onError(String itemId)

当该项目不存在或在检索时发生错误时调用。

void onItemLoaded(MediaBrowser.MediaItem item)

当该项目已被浏览器服务返回时调用。

Inherited methods

From class java.lang.Object

Public constructors

MediaBrowser.ItemCallback

Added in API level 23
MediaBrowser.ItemCallback ()

Public methods

onError

Added in API level 23
void onError (String itemId)

当该项目不存在或在检索时发生错误时调用。

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

onItemLoaded

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

当该项目已被浏览器服务返回时调用。

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

Hooray!