MediaConstants

public final class MediaConstants
extends Object

java.lang.Object
   ↳ androidx.media.utils.MediaConstants


Media constants for sharing constants between media provider and consumer apps

Summary

Constants

String BROWSER_ROOT_HINTS_KEY_MEDIA_ART_SIZE_PIXELS

Bundle key passed through root hints to the MediaBrowserServiceCompat to indicate the recommended size, in pixels, for media art bitmaps.

String BROWSER_ROOT_HINTS_KEY_ROOT_CHILDREN_LIMIT

Bundle key passed through root hints to the MediaBrowserServiceCompat to indicate the maximum number of children of the root node that can be supported by the hosting MediaBrowserCompat.

String BROWSER_ROOT_HINTS_KEY_ROOT_CHILDREN_SUPPORTED_FLAGS

Bundle key passed through root hints to the MediaBrowserServiceCompat to indicate which flags exposed by MediaBrowserCompat.MediaItem.getFlags() from children of the root node are supported by the hosting MediaBrowserCompat.

String BROWSER_SERVICE_EXTRAS_KEY_SEARCH_SUPPORTED

Bundle key sent through MediaBrowserCompat.getExtras() to the hosting MediaBrowserCompat to indicate that the MediaBrowserServiceCompat supports the method MediaBrowserServiceCompat.onSearch(String, Bundle, MediaBrowserServiceCompat.Result).

String DESCRIPTION_EXTRAS_KEY_COMPLETION_PERCENTAGE

Bundle key sent through MediaDescriptionCompat.getExtras() to the hosting MediaBrowserCompat to indicate an amount of completion progress for the corresponding MediaBrowserCompat.MediaItem.

String DESCRIPTION_EXTRAS_KEY_COMPLETION_STATUS

Bundle key sent through MediaDescriptionCompat.getExtras() to the hosting MediaBrowserCompat to indicate the playback completion status of the corresponding MediaBrowserCompat.MediaItem.

String DESCRIPTION_EXTRAS_KEY_CONTENT_STYLE_BROWSABLE

Bundle key passed from the MediaBrowserServiceCompat to the hosting MediaBrowserCompat to indicate a preference about how browsable instances of MediaBrowserCompat.MediaItem are presented.

String DESCRIPTION_EXTRAS_KEY_CONTENT_STYLE_GROUP_TITLE

Bundle key sent through MediaDescriptionCompat.getExtras() to the hosting MediaBrowserCompat to indicate that certain instances of