SubscriptionCallback
abstract class SubscriptionCallback
kotlin.Any | |
↳ | android.support.v4.media.MediaBrowserCompat.SubscriptionCallback |
Callbacks for subscription related events.
Summary
Public constructors |
|
---|---|
<init>() |
Public methods |
|
---|---|
open Unit |
onChildrenLoaded(@NonNull parentId: String, @NonNull children: MutableList<MediaBrowserCompat.MediaItem!>) Called when the list of children is loaded or updated. |
open Unit |
onChildrenLoaded(@NonNull parentId: String, @NonNull children: MutableList<MediaBrowserCompat.MediaItem!>, @NonNull options: Bundle) Called when the list of children is loaded or updated. |
open Unit |
Called when the id doesn't exist or other errors in subscribing. |
open Unit |
Called when the id doesn't exist or other errors in subscribing. |
Public constructors
<init>
SubscriptionCallback()
Public methods
onChildrenLoaded
open fun onChildrenLoaded(@NonNull parentId: String, @NonNull children: MutableList<MediaBrowserCompat.MediaItem!>): Unit
Called when the list of children is loaded or updated.
Parameters | |
---|---|
parentId |
String: The media id of the parent media item. |
children |
String: The children which were loaded. |
onChildrenLoaded
open fun onChildrenLoaded(@NonNull parentId: String, @NonNull children: MutableList<MediaBrowserCompat.MediaItem!>, @NonNull options: Bundle): Unit
Called when the list of children is loaded or updated.
Parameters | |
---|---|
parentId |
String: The media id of the parent media item. |
children |
String: The children which were loaded. |
options |
String: A bundle of service-specific arguments to send to the media browse service. The contents of this bundle may affect the information returned when browsing. |
onError
open fun onError(@NonNull parentId: String): Unit
Called when the id doesn't exist or other errors in subscribing.
If this is called, the subscription remains until MediaBrowserCompat#unsubscribe
called, because some errors may heal themselves.
Parameters | |
---|---|
parentId |
String: The media id of the parent media item whose children could not be loaded. |
onError
open fun onError(@NonNull parentId: String, @NonNull options: Bundle): Unit
Called when the id doesn't exist or other errors in subscribing.
If this is called, the subscription remains until MediaBrowserCompat#unsubscribe
called, because some errors may heal themselves.
Parameters | |
---|---|
parentId |
String: The media id of the parent media item whose children could not be loaded. |
options |
String: A bundle of service-specific arguments sent to the media browse service. |