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 id)
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.

public void onError (String id)

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.