MediaBrowserServiceCompat.BrowserRoot

public static final class MediaBrowserServiceCompat.BrowserRoot
extends Object

java.lang.Object
   ↳ androidx.media.MediaBrowserServiceCompat.BrowserRoot


Contains information that the browser service needs to send to the client when first connected.

Summary

Constants

String EXTRA_OFFLINE

The lookup key for a boolean that indicates whether the browser service should return a browser root for offline media items.

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.

String EXTRA_SUGGESTED

The lookup key for a boolean that indicates whether the browser service should return a browser root for suggested media items.

String EXTRA_SUGGESTION_KEYWORDS

This constant is deprecated. The search functionality is now supported by the methods MediaBrowserCompat.search(String, Bundle, MediaBrowserCompat.SearchCallback) and MediaBrowserServiceCompat.onSearch(String, Bundle, MediaBrowserServiceCompat.Result>). Use those methods instead.

Public constructors

BrowserRoot(String rootId, Bundle extras)

Constructs a browser root.

Public methods

Bundle getExtras()

Gets any extras about the browser service.

String getRootId()

Gets the root id for browsing.

Inherited methods