public static final class MediaBrowserService.BrowserRoot extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EXTRA_OFFLINE
The lookup key for a boolean that indicates whether the browser service should return a
browser root for offline media items.
|
static String |
EXTRA_RECENT
The lookup key for a boolean that indicates whether the browser service should return a
browser root for recently played media items.
|
static String |
EXTRA_SUGGESTED
The lookup key for a boolean that indicates whether the browser service should return a
browser root for suggested media items.
|
Constructor and Description |
---|
BrowserRoot(String rootId,
Bundle extras)
Constructs a browser root.
|
Modifier and Type | Method and Description |
---|---|
Bundle |
getExtras()
Gets any extras about the browser service.
|
String |
getRootId()
Gets the root id for browsing.
|
public static final String EXTRA_RECENT
When creating a media browser for a given media browser service, this key can be
supplied as a root hint for retrieving media items that are recently played.
If the media browser service can provide such media items, the implementation must return
the key in the root hint when MediaBrowserService.onGetRoot(String, int, Bundle)
is called back.
The root hint may contain multiple keys.
EXTRA_OFFLINE
,
EXTRA_SUGGESTED
,
Constant Field Valuespublic static final String EXTRA_OFFLINE
When creating a media browser for a given media browser service, this key can be
supplied as a root hint for retrieving media items that are can be played without an
internet connection.
If the media browser service can provide such media items, the implementation must return
the key in the root hint when MediaBrowserService.onGetRoot(String, int, Bundle)
is called back.
The root hint may contain multiple keys.
EXTRA_RECENT
,
EXTRA_SUGGESTED
,
Constant Field Valuespublic static final String EXTRA_SUGGESTED
When creating a media browser for a given media browser service, this key can be
supplied as a root hint for retrieving the media items suggested by the media browser
service. The list of media items passed in MediaBrowser.SubscriptionCallback.onChildrenLoaded(String, List)
is considered ordered by relevance, first being the top suggestion.
If the media browser service can provide such media items, the implementation must return
the key in the root hint when MediaBrowserService.onGetRoot(String, int, Bundle)
is called back.
The root hint may contain multiple keys.
EXTRA_RECENT
,
EXTRA_OFFLINE
,
Constant Field Values