Added in API level 23

ItemCallback

abstract class ItemCallback
kotlin.Any
   ↳ android.media.browse.MediaBrowser.ItemCallback

Callback for receiving the result of getItem.

Summary

Public constructors

Public methods
open Unit
onError(mediaId: String)

Called there was an error retrieving it or the connected service doesn't support getItem.

open Unit

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

Public constructors

ItemCallback

ItemCallback()

Public methods

onError

Added in API level 23
open fun onError(mediaId: String): Unit

Called there was an error retrieving it or the connected service doesn't support getItem.

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
open fun onItemLoaded(item: MediaBrowser.MediaItem!): Unit

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.