Example usage for Java android.support.v4.media MediaBrowserCompat fields, constructors, methods, implement or subclass
The text is from its open source code.
String | EXTRA_PAGE Used as an int extra field to denote the page number to subscribe. |
String | EXTRA_PAGE_SIZE Used as an int extra field to denote the number of media items in a page. |
MediaBrowserCompat(Context context, ComponentName serviceComponent, ConnectionCallback callback, Bundle rootHints) Creates a media browser for the specified media browse service. |
void | connect() Connects to the media browse service. |
void | disconnect() Disconnects from the media browse service. |
Bundle | getExtras() Gets any extras for the media service. |
void | getItem(final @NonNull String mediaId, @NonNull final ItemCallback cb) Retrieves a specific MediaItem from the connected service. |
String | getRoot() Gets the root id. |
boolean | isConnected() Returns whether the browser is connected to the service. |
void | subscribe(@NonNull String parentId, @NonNull SubscriptionCallback callback) Queries for information about the media items that are contained within the specified id and subscribes to receive updates when they change. |
void | unsubscribe(@NonNull String parentId) Unsubscribes for changes to the children of the specified media id. |
void | unsubscribe(@NonNull String parentId, @NonNull SubscriptionCallback callback) Unsubscribes for changes to the children of the specified media id. |