Android APIs
public static abstract class

MediaBrowser.SubscriptionCallback

extends Object
java.lang.Object
   ↳ android.media.browse.MediaBrowser.SubscriptionCallback

Class Overview

Callbacks for subscription related events.

Summary

Public Constructors
MediaBrowser.SubscriptionCallback()
Public Methods
void onChildrenLoaded(String parentId, List<MediaBrowser.MediaItem> children)
Called when the list of children is loaded or updated.
void onError(String parentId)
Called when the id doesn't exist or other errors in subscribing.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MediaBrowser.SubscriptionCallback ()

Added in API level 21

Public Methods

public void onChildrenLoaded (String parentId, List<MediaBrowser.MediaItem> children)

Added in API level 21

Called when the list of children is loaded or updated.

Parameters
parentId The media id of the parent media item.
children The children which were loaded.

public void onError (String parentId)

Added in API level 21

Called when the id doesn't exist or other errors in subscribing.

If this is called, the subscription remains until unsubscribe(String) called, because some errors may heal themselves.

Parameters
parentId The media id of the parent media item whose children could not be loaded.