MediaBrowserCompat.ItemCallback


abstract class MediaBrowserCompat.ItemCallback


Callback for receiving the result of getItem.

Summary

Public constructors

Public functions

Unit
onError(itemId: String)

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

Unit

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

Public constructors

ItemCallback

Added in 1.1.0
ItemCallback()

Public functions

onError

Added in 1.1.0
fun onError(itemId: String): Unit

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

Parameters
itemId: String

The media id of the media item which could not be loaded.

onItemLoaded

Added in 1.1.0
fun onItemLoaded(item: MediaBrowserCompat.MediaItem!): Unit

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

Parameters
item: MediaBrowserCompat.MediaItem!

The item that was returned or null if it doesn't exist.