Språk

MediaStore.Audio.Media.InterfaceConsts Class

Definition

Audio-track metadata and common media column names, including the retained legacy album-art key, exposed for MediaStore.Audio.Media.

public static class MediaStore.Audio.Media.InterfaceConsts
type MediaStore.Audio.Media.InterfaceConsts = class
Inheritance
MediaStore.Audio.Media.InterfaceConsts

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fields

Name Description
Album

Names the column for the album title associated with the media item.

AlbumArt

Retains the legacy album-art file-path key album_art in this managed projection.

AlbumArtist

Indexed value of MediaMetadataRetriever#METADATA_KEY_ALBUMARTIST extracted from this media item.

AlbumId

Names the column for the album's numeric identifier.

AlbumKey

Names the generated album search, sort, and grouping key, which does not provide locale-specific ordering.

Artist

Names the column for the artist associated with the media item.

ArtistId

Names the column for the associated artist's numeric identifier.

ArtistKey

Names the generated artist search, sort, and grouping key, which does not provide locale-specific ordering.

Author

Indexed value of MediaMetadataRetriever#METADATA_KEY_AUTHOR extracted from this media item.

Bitrate

Indexed value of MediaMetadataRetriever#METADATA_KEY_BITRATE extracted from this media item.

BitsPerSample

Names the column for the audio sample bit depth, when available.

Bookmark

Names the column for the playback-resume position in milliseconds.

BucketDisplayName

The primary bucket display name of this media item.

BucketId

The primary bucket ID of this media item.

CaptureFramerate

Indexed value of MediaMetadataRetriever#METADATA_KEY_CAPTURE_FRAMERATE extracted from this media item.

CdTrackNumber

Indexed value of MediaMetadataRetriever#METADATA_KEY_CD_TRACK_NUMBER extracted from this media item.

Compilation

Indexed value of MediaMetadataRetriever#METADATA_KEY_COMPILATION extracted from this media item.

Composer

Names the column containing composer metadata extracted from the media item.

Count

The count of rows in a directory.

Data

Absolute filesystem path to the media item on disk.

DateAdded

The time the media item was first added.

DateExpires

The time the media item should be considered expired.

DateModified

Indexed value of File#lastModified() extracted from this media item.

DateTaken

Indexed value of MediaMetadataRetriever#METADATA_KEY_DATE or ExifInterface#TAG_DATETIME_ORIGINAL extracted from this media item.

DiscNumber

Indexed value of MediaMetadataRetriever#METADATA_KEY_DISC_NUMBER extracted from this media item.

DisplayName

The display name of the media item.

DocumentId

The "document ID" GUID as defined by the <em>XMP Media Management</em> standard, extracted from any XMP metadata contained within this media item.

Duration

Names the column for the media item's duration in milliseconds.

GenerationAdded

Generation number at which metadata for this media item was first inserted.

GenerationModified

Generation number at which metadata for this media item was last changed.

Genre

Names the column for the audio item's genre, when available.

GenreId

Names the column for the associated genre's numeric identifier.

GenreKey

Names the generated genre search, sort, and grouping key, which does not provide locale-specific ordering.

Height

Indexed value of MediaMetadataRetriever#METADATA_KEY_VIDEO_HEIGHT, MediaMetadataRetriever#METADATA_KEY_IMAGE_HEIGHT or ExifInterface#TAG_IMAGE_LENGTH extracted from this media item.

Id

The unique ID for a row.

InferredDate

File's approximate creation date.

InstanceId

The "instance ID" GUID as defined by the <em>XMP Media Management</em> standard, extracted from any XMP metadata contained within this media item.

IsAlarm

Names the nonzero flag column for audio that can be used as an alarm sound.

IsAudiobook

Names the nonzero flag column identifying audiobook audio.

IsDownload

Flag indicating if the media item has been marked as being part of the Downloads collection.

IsDrm

Flag indicating if a media item is DRM protected.

IsFavorite

Flag indicating if the media item has been marked as being a "favorite" by the user.

IsMusic

Names the nonzero flag column identifying music audio.

IsNotification

Names the nonzero flag column for audio that can be used as a notification sound.

IsPending

Flag indicating if a media item is pending, and still being inserted by its owner.

IsPodcast

Names the nonzero flag column identifying podcast audio.

IsRecording

Names the nonzero flag column identifying a voice recording made by a recorder app.

IsRingtone

Names the nonzero flag column for audio that can be used as a ringtone.

IsTrashed

Flag indicating if a media item is trashed.

MimeType

The MIME type of the media item.

NumTracks

Indexed value of MediaMetadataRetriever#METADATA_KEY_NUM_TRACKS extracted from this media item.

OemMetadata

Column which allows OEMs to store custom metadata for a media file.

Orientation

Indexed value of MediaMetadataRetriever#METADATA_KEY_VIDEO_ROTATION, MediaMetadataRetriever#METADATA_KEY_IMAGE_ROTATION, or ExifInterface#TAG_ORIENTATION extracted from this media item.

OriginalDocumentId

The "original document ID" GUID as defined by the <em>XMP Media Management</em> standard, extracted from any XMP metadata contained within this media item.

OwnerPackageName

Package name that contributed this media.

RelativePath

Relative path of this media item within the storage device where it is persisted.

Resolution

Calculated value that combines #WIDTH and #HEIGHT into a user-presentable string.

Samplerate

Names the column for the audio sample rate in hertz, when available.

Size

Indexed value of File#length() extracted from this media item.

Title

Indexed value of MediaMetadataRetriever#METADATA_KEY_TITLE extracted from this media item.

TitleKey

Names the generated title search, sort, and grouping key, which does not provide locale-specific ordering.

TitleResourceUri

Names the column for the resource URI of a localized title.

Track

Names the column encoding both track and disc numbers, with the disc number in the thousands position.

VolumeName

Volume name of the specific storage device where this media item is persisted.

Width

Indexed value of MediaMetadataRetriever#METADATA_KEY_VIDEO_WIDTH, MediaMetadataRetriever#METADATA_KEY_IMAGE_WIDTH or ExifInterface#TAG_IMAGE_WIDTH extracted from this media item.

Writer

Indexed value of MediaMetadataRetriever#METADATA_KEY_WRITER extracted from this media item.

Xmp

Indexed XMP metadata extracted from this media item.

Year

Names the column for the year the audio file was recorded.

Applies to