MediaBrowserServiceCompat.BrowserRoot
class MediaBrowserServiceCompat.BrowserRoot
Contains information that the browser service needs to send to the client when first connected.
Summary
Constants |
|
|---|---|
const String! |
EXTRA_OFFLINE = "android.service.media.extra.OFFLINE"The lookup key for a boolean that indicates whether the browser service should return a browser root for offline media items. |
const String! |
EXTRA_RECENT = "android.service.media.extra.RECENT"The lookup key for a boolean that indicates whether the browser service should return a browser root for recently played media items. |
const String! |
EXTRA_SUGGESTED = "android.service.media.extra.SUGGESTED"The lookup key for a boolean that indicates whether the browser service should return a browser root for suggested media items. |
const String! |
EXTRA_SUGGESTION_KEYWORDS = "android.service.media.extra.SUGGESTION_KEYWORDS"This property is deprecated. The search functionality is now supported by the methods |
Public constructors |
|---|
BrowserRoot(rootId: String, extras: Bundle?)Constructs a browser root. |
Public functions |
|
|---|---|
Bundle! |
Gets any extras about the browser service. |
String! |
Gets the root id for browsing. |
Constants
EXTRA_OFFLINE
const val EXTRA_OFFLINE = "android.service.media.extra.OFFLINE": String!
The lookup key for a boolean that indicates whether the browser service should return a browser root for offline media items.
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 onGetRoot is called back.
The root hint may contain multiple keys.
| See also | |
|---|---|
EXTRA_RECENT |
|
EXTRA_SUGGESTED |
EXTRA_RECENT
const val EXTRA_RECENT = "android.service.media.extra.RECENT": String!
The lookup key for a boolean that indicates whether the browser service should return a browser root for recently played media items.
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 onGetRoot is called back.
The root hint may contain multiple keys.
| See also | |
|---|---|
EXTRA_OFFLINE |
|
EXTRA_SUGGESTED |
EXTRA_SUGGESTED
const val EXTRA_SUGGESTED = "android.service.media.extra.SUGGESTED": String!
The lookup key for a boolean that indicates whether the browser service should return a browser root for suggested media items.
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 onChildrenLoaded 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 onGetRoot is called back.
The root hint may contain multiple keys.
| See also | |
|---|---|
EXTRA_RECENT |
|
EXTRA_OFFLINE |
const val EXTRA_SUGGESTION_KEYWORDS = "android.service.media.extra.SUGGESTION_KEYWORDS": String!
The lookup key for a string that indicates specific keywords which will be considered when the browser service suggests media items.
When creating a media browser for a given media browser service, this key can be supplied as a root hint together with EXTRA_SUGGESTED for retrieving suggested media items related with the keywords. The list of media items passed in onChildrenLoaded 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 onGetRoot is called back.
The root hint may contain multiple keys.
| See also | |
|---|---|
EXTRA_RECENT |
|
EXTRA_OFFLINE |
|
EXTRA_SUGGESTED |