ItemCallback

abstract class ItemCallback
kotlin.Any
   ↳ android.support.v4.media.MediaBrowserCompat.ItemCallback

Callback for receiving the result of getItem.

Summary

Public constructors

Public methods
open Unit
onError(@NonNull itemId: String)

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

open Unit

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

Public constructors

<init>

ItemCallback()

Public methods

onError

open fun onError(@NonNull 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

open 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.