Most visited

Recently visited

MediaBrowserCompat.ItemCallback

public static abstract class MediaBrowserCompat.ItemCallback
extends Object

java.lang.Object
   ↳ android.support.v4.media.MediaBrowserCompat.ItemCallback


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

Summary

Public constructors

MediaBrowserCompat.ItemCallback()

Public methods

void onError(String itemId)

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

void onItemLoaded(MediaBrowserCompat.MediaItem item)

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

Inherited methods

From class java.lang.Object

Public constructors

MediaBrowserCompat.ItemCallback

MediaBrowserCompat.ItemCallback ()

Public methods

onError

void onError (String itemId)

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

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

onItemLoaded

void onItemLoaded (MediaBrowserCompat.MediaItem item)

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

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

Hooray!