Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Media

*** ** * ** ***

```
class Media : MediaStore.Audio.AudioColumns
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.provider.MediaStore.Audio.Media](https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#) |

## Summary

| Constants ||
|---|---|
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#CONTENT_TYPE:kotlin.String` The MIME type for this table. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#DEFAULT_SORT_ORDER:kotlin.String` The default sort order for this table |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#ENTRY_CONTENT_TYPE:kotlin.String` The MIME type for an audio track. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#EXTRA_MAX_BYTES:kotlin.String` The name of the Intent-extra used to define a maximum file size for a recording made by the SoundRecorder application. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#RECORD_SOUND_ACTION:kotlin.String` Activity Action: Start SoundRecorder application. |

| Inherited constants ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns` |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#ALBUM:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_ALBUM:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#ALBUM_ARTIST:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_ALBUMARTIST:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#ARTIST:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_ARTIST:kotlin.Int` or `https://developer.android.com/reference/kotlin/android/media/ExifInterface.html#TAG_ARTIST:kotlin.String` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#AUTHOR:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_AUTHOR:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#BITRATE:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_BITRATE:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#BUCKET_DISPLAY_NAME:kotlin.String` The primary bucket display name of this media item. This can be useful to present the user a first-level clustering of related media items. This is a read-only column that is automatically computed. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#BUCKET_ID:kotlin.String` The primary bucket ID of this media item. This can be useful to present the user a first-level clustering of related media items. This is a read-only column that is automatically computed. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#CAPTURE_FRAMERATE:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_CAPTURE_FRAMERATE:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_FLOAT:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#CD_TRACK_NUMBER:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_CD_TRACK_NUMBER:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#COMPILATION:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_COMPILATION:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#COMPOSER:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_COMPOSER:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATA:kotlin.String` Absolute filesystem path to the media item on disk. Apps may use this path to do file operations. However, they should not assume that the file is always available. Apps must be prepared to handle any file-based I/O errors that could occur. From Android 11 onwards, this column is read-only for apps that target `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#R:kotlin.Int` and higher. On those devices, when creating or updating a uri, this column's value is not accepted. Instead, to update the filesystem location of a file, use the values of the `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DISPLAY_NAME:kotlin.String` and `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#RELATIVE_PATH:kotlin.String` columns. Though direct file operations are supported, `https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#openFileDescriptor(android.net.Uri,%20kotlin.String)` API is recommended for better performance. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` . <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATE_ADDED:kotlin.String` The time the media item was first added. Value is a non-negative timestamp measured as the number of seconds since 1970-01-01T00:00:00Z. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATE_EXPIRES:kotlin.String` The time the media item should be considered expired. Typically only meaningful in the context of `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#IS_PENDING:kotlin.String` or `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#IS_TRASHED:kotlin.String`. The value stored in this column is automatically calculated when `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#IS_PENDING:kotlin.String` or `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#IS_TRASHED:kotlin.String` is changed. The default pending expiration is typically 7 days, and the default trashed expiration is typically 30 days. Expired media items are automatically deleted once their expiration time has passed, typically during the next device idle period. Value is a non-negative timestamp measured as the number of seconds since 1970-01-01T00:00:00Z. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATE_MODIFIED:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/java/io/File.html#lastModified()` extracted from this media item. Value is a non-negative timestamp measured as the number of seconds since 1970-01-01T00:00:00Z. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATE_TAKEN:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_DATE:kotlin.Int` or `https://developer.android.com/reference/kotlin/android/media/ExifInterface.html#TAG_DATETIME_ORIGINAL:kotlin.String` extracted from this media item. Note that images must define both `https://developer.android.com/reference/kotlin/android/media/ExifInterface.html#TAG_DATETIME_ORIGINAL:kotlin.String` and `ExifInterface#TAG_OFFSET_TIME_ORIGINAL` to reliably determine this value in relation to the epoch. Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DISC_NUMBER:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_DISC_NUMBER:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DISPLAY_NAME:kotlin.String` The display name of the media item. For example, an item stored at `/storage/0000-0000/DCIM/Vacation/IMG1024.JPG` would have a display name of `IMG1024.JPG`. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` . <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DOCUMENT_ID:kotlin.String` The "document ID" GUID as defined by the *XMP Media Management* standard, extracted from any XMP metadata contained within this media item. The value is `null` when no metadata was found. Each "document ID" is created once for each new resource. Different renditions of that resource are expected to have different IDs. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DURATION:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_DURATION:kotlin.Int` extracted from this media item. Value is a non-negative duration in milliseconds. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#GENERATION_ADDED:kotlin.String` Generation number at which metadata for this media item was first inserted. This is useful for apps that are attempting to quickly identify exactly which media items have been added since a previous point in time. Generation numbers are monotonically increasing over time, and can be safely arithmetically compared. Detecting media additions using generation numbers is more robust than using `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATE_ADDED:kotlin.String`, since those values may change in unexpected ways when apps use `https://developer.android.com/reference/kotlin/java/io/File.html#setLastModified(kotlin.Long)` or when the system clock is set incorrectly. Note that before comparing these detailed generation values, you should first confirm that the overall version hasn't changed by checking `https://developer.android.com/reference/kotlin/android/provider/MediaStore#getVersion(android.content.Context,%20kotlin.String)`, since that indicates when a more radical change has occurred. If the overall version changes, you should assume that generation numbers have been reset and perform a full synchronization pass. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#GENERATION_MODIFIED:kotlin.String` Generation number at which metadata for this media item was last changed. This is useful for apps that are attempting to quickly identify exactly which media items have changed since a previous point in time. Generation numbers are monotonically increasing over time, and can be safely arithmetically compared. Detecting media changes using generation numbers is more robust than using `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATE_MODIFIED:kotlin.String`, since those values may change in unexpected ways when apps use `https://developer.android.com/reference/kotlin/java/io/File.html#setLastModified(kotlin.Long)` or when the system clock is set incorrectly. Note that before comparing these detailed generation values, you should first confirm that the overall version hasn't changed by checking `https://developer.android.com/reference/kotlin/android/provider/MediaStore#getVersion(android.content.Context,%20kotlin.String)`, since that indicates when a more radical change has occurred. If the overall version changes, you should assume that generation numbers have been reset and perform a full synchronization pass. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#HEIGHT:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_VIDEO_HEIGHT:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_IMAGE_HEIGHT:kotlin.Int` or `https://developer.android.com/reference/kotlin/android/media/ExifInterface.html#TAG_IMAGE_LENGTH:kotlin.String` extracted from this media item. Type: INTEGER. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#INFERRED_DATE:kotlin.String` File's approximate creation date. Following is the derivation logic: 1. If `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATE_TAKEN:kotlin.String` is present, use it. 2. If `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATE_TAKEN:kotlin.String` is absent, use `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATE_MODIFIED:kotlin.String`. Note: When `https://developer.android.com/reference/kotlin/android/provider/MediaStore#QUERY_ARG_MEDIA_STANDARD_SORT_ORDER:kotlin.String` query argument is used, the sorting is based on this column in descending order. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#INSTANCE_ID:kotlin.String` The "instance ID" GUID as defined by the *XMP Media Management* standard, extracted from any XMP metadata contained within this media item. The value is `null` when no metadata was found. This "instance ID" changes with each save operation of a specific "document ID". This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#IS_DOWNLOAD:kotlin.String` Flag indicating if the media item has been marked as being part of the `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Downloads` collection. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#IS_DRM:kotlin.String` Flag indicating if a media item is DRM protected. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` . <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#IS_FAVORITE:kotlin.String` Flag indicating if the media item has been marked as being a "favorite" by the user. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` . <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#IS_PENDING:kotlin.String` Flag indicating if a media item is pending, and still being inserted by its owner. While this flag is set, only the owner of the item can open the underlying file; requests from other apps will be rejected. Pending items are retained either until they are published by setting the field to `0`, or until they expire as defined by `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATE_EXPIRES:kotlin.String`. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` . <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#IS_TRASHED:kotlin.String` Flag indicating if a media item is trashed. Trashed items are retained until they expire as defined by `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#DATE_EXPIRES:kotlin.String`. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` . <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#MIME_TYPE:kotlin.String` The MIME type of the media item. This is typically defined based on the file extension of the media item. However, it may be the value of the `format` attribute defined by the *Dublin Core Media Initiative* standard, extracted from any XMP metadata contained within this media item. Note: the `format` attribute may be ignored if the top-level MIME type disagrees with the file extension. For example, it's reasonable for an `image/jpeg` file to declare a `format` of `image/vnd.google.panorama360+jpg`, but declaring a `format` of `audio/ogg` would be ignored. This is a read-only column that is automatically computed. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` . <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#NUM_TRACKS:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_NUM_TRACKS:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#OEM_METADATA:kotlin.String` Column which allows OEMs to store custom metadata for a media file. It is expected to contain a JSON string. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_BLOB:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#ORIENTATION:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_VIDEO_ROTATION:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_IMAGE_ROTATION:kotlin.Int`, or `https://developer.android.com/reference/kotlin/android/media/ExifInterface.html#TAG_ORIENTATION:kotlin.String` extracted from this media item. For consistency the indexed value is expressed in degrees, such as 0, 90, 180, or 270. Type: INTEGER. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#ORIGINAL_DOCUMENT_ID:kotlin.String` The "original document ID" GUID as defined by the *XMP Media Management* standard, extracted from any XMP metadata contained within this media item. This "original document ID" links a resource to its original source. For example, when you save a PSD document as a JPEG, then convert the JPEG to GIF format, the "original document ID" of both the JPEG and GIF files is the "document ID" of the original PSD file. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#OWNER_PACKAGE_NAME:kotlin.String` Package name that contributed this media. The value may be `NULL` if ownership cannot be reliably determined. From Android `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#UPSIDE_DOWN_CAKE:kotlin.Int` onwards, visibility and query of this field will depend on [package visibility](https://developer.android.com/reference/kotlin/training/basics/intents/package-visibility). For android.content.ContentResolver#query operation, result set will be restricted to visible packages only. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#RELATIVE_PATH:kotlin.String` Relative path of this media item within the storage device where it is persisted. For example, an item stored at `/storage/0000-0000/DCIM/Vacation/IMG1024.JPG` would have a path of `DCIM/Vacation/`. This value should only be used for organizational purposes, and you should not attempt to construct or access a raw filesystem path using this value. If you need to open a media item, use an API like `https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#openFileDescriptor(android.net.Uri,%20kotlin.String)`. When this value is set to `NULL` during an android.content.ContentResolver#insert operation, the newly created item will be placed in a relevant default location based on the type of media being inserted. For example, a `image/jpeg` item will be placed under `https://developer.android.com/reference/kotlin/android/os/Environment.html#DIRECTORY_PICTURES:kotlin.String`. You can modify this column during an android.content.ContentResolver#update call, which will move the underlying file on disk. In both cases above, content must be placed under a top-level directory that is relevant to the media type. For example, attempting to place a `audio/mpeg` file under `https://developer.android.com/reference/kotlin/android/os/Environment.html#DIRECTORY_PICTURES:kotlin.String` will be rejected. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` . <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#RESOLUTION:kotlin.String` Calculated value that combines `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#WIDTH:kotlin.String` and `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#HEIGHT:kotlin.String` into a user-presentable string. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#SIZE:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/java/io/File.html#length()` extracted from this media item. Value is a non-negative number of bytes. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#TITLE:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_TITLE:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#VOLUME_NAME:kotlin.String` Volume name of the specific storage device where this media item is persisted. The value is typically one of the volume names returned from `https://developer.android.com/reference/kotlin/android/provider/MediaStore#getExternalVolumeNames(android.content.Context)`. This is a read-only column that is automatically computed. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#WIDTH:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_VIDEO_WIDTH:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_IMAGE_WIDTH:kotlin.Int` or `https://developer.android.com/reference/kotlin/android/media/ExifInterface.html#TAG_IMAGE_WIDTH:kotlin.String` extracted from this media item. Type: INTEGER. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#WRITER:kotlin.String` Indexed value of `https://developer.android.com/reference/kotlin/android/media/MediaMetadataRetriever.html#METADATA_KEY_WRITER:kotlin.Int` extracted from this media item. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.MediaColumns#XMP:kotlin.String` Indexed XMP metadata extracted from this media item. The structure of this metadata is defined by the [*XMP Media Management* standard](https://en.wikipedia.org/wiki/Extensible_Metadata_Platform), published as ISO 16684-1:2012. This metadata is typically extracted from a `https://developer.android.com/reference/kotlin/android/media/ExifInterface.html#TAG_XMP:kotlin.String` contained inside an image file or from a `XMP_` box contained inside an ISO/IEC base media file format (MPEG-4 Part 12). Note that any location details are redacted from this metadata for privacy reasons. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_BLOB:kotlin.Int` , and are read-only and cannot be mutated. <br /> | ||
| From class `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns` |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#ALBUM_ID:kotlin.String` The id of the album the audio file is from, if any. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#ALBUM_KEY:kotlin.String` A non human readable key calculated from the ALBUM, used for searching, sorting and grouping. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#ARTIST_ID:kotlin.String` The id of the artist who created the audio file, if any. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#ARTIST_KEY:kotlin.String` A non human readable key calculated from the ARTIST, used for searching, sorting and grouping. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#BITS_PER_SAMPLE:kotlin.String` The number of bits used to represent each audio sample, if available. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#BOOKMARK:kotlin.String` The position within the audio item at which playback should be resumed. Value is a non-negative duration in milliseconds. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` . <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#GENRE:kotlin.String` The genre of the audio file, if any. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#GENRE_ID:kotlin.String` The id of the genre the audio file is from, if any. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#GENRE_KEY:kotlin.String` A non human readable key calculated from the GENRE, used for searching, sorting and grouping. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#IS_ALARM:kotlin.String` Non-zero if the audio file may be an alarm. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#IS_AUDIOBOOK:kotlin.String` Non-zero if the audio file is an audiobook. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#IS_MUSIC:kotlin.String` Non-zero if the audio file is music. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#IS_NOTIFICATION:kotlin.String` Non-zero if the audio file may be a notification sound. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#IS_PODCAST:kotlin.String` Non-zero if the audio file is a podcast. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#IS_RECORDING:kotlin.String` Non-zero if the audio file is a voice recording recorded by voice recorder apps. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#IS_RINGTONE:kotlin.String` Non-zero if the audio file may be a ringtone. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#SAMPLERATE:kotlin.String` The sample rate in Hz, if available. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#TITLE_KEY:kotlin.String` A non human readable key calculated from the TITLE, used for searching, sorting and grouping. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#TITLE_RESOURCE_URI:kotlin.String` The resource URI of a localized title, if any. Conforms to this pattern: - Scheme: `https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#SCHEME_ANDROID_RESOURCE:kotlin.String` - Authority: Package Name of ringtone title provider - First Path Segment: Type of resource (must be "string") - Second Path Segment: Resource ID of title . This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_STRING:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#TRACK:kotlin.String` The track number of this song on the album, if any. This number encodes both the track number and the disc number. For multi-disc sets, this number will be 1xxx for tracks on the first disc, 2xxx for tracks on the second disc, etc. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.AudioColumns#YEAR:kotlin.String` The year the audio file was recorded, if any. This constant represents a column name that can be used with a `https://developer.android.com/reference/kotlin/android/content/ContentProvider.html#` through a `https://developer.android.com/reference/kotlin/android/content/ContentValues.html#` or `https://developer.android.com/reference/kotlin/android/database/Cursor.html#` object. The values stored in this column are `https://developer.android.com/reference/kotlin/android/database/Cursor.html#FIELD_TYPE_INTEGER:kotlin.Int` , and are read-only and cannot be mutated. <br /> | ||
| From class `https://developer.android.com/reference/kotlin/android/provider/BaseColumns` |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_COUNT:kotlin.String` The count of rows in a directory. Type: INTEGER <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String` The unique ID for a row. Type: INTEGER (long) <br /> | ||

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#Media()()` <br /> |

| Public methods ||
|---|---|
| static [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#getContentUri(kotlin.String)(volumeName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` Get the content:// style URI for the audio media table on the given volume. |
| static [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#) | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#getContentUri(kotlin.String,%20kotlin.Long)(volumeName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, id: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` Get the content:// style URI for a single row in the audio table on the given volume. |
| static [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)? | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#getContentUriForPath(kotlin.String)(path: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Get the content:// style URI for the given audio media file. |

| Properties ||
|---|---|
| static [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#EXTERNAL_CONTENT_URI:android.net.Uri` The content:// style URI for the "primary" external storage volume. |
| static [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#INTERNAL_CONTENT_URI:android.net.Uri` The content:// style URI for the internal storage. |

## Constants

### CONTENT_TYPE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val CONTENT_TYPE: String
```

The MIME type for this table.

    Value: "vnd.android.cursor.dir/audio"

### DEFAULT_SORT_ORDER

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val DEFAULT_SORT_ORDER: String
```

The default sort order for this table

    Value: "title_key"

### ENTRY_CONTENT_TYPE

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val ENTRY_CONTENT_TYPE: String
```

The MIME type for an audio track.

    Value: "vnd.android.cursor.item/audio"

### EXTRA_MAX_BYTES

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val EXTRA_MAX_BYTES: String
```

The name of the Intent-extra used to define a maximum file size for a recording made by the SoundRecorder application.

    Value: "android.provider.MediaStore.extra.MAX_BYTES"

**See Also**

- `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#RECORD_SOUND_ACTION:kotlin.String`

### RECORD_SOUND_ACTION

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val RECORD_SOUND_ACTION: String
```

Activity Action: Start SoundRecorder application.

Input: nothing.

Output: An uri to the recorded sound stored in the Media Library if the recording was successful. May also contain the extra EXTRA_MAX_BYTES.

    Value: "android.provider.MediaStore.RECORD_SOUND"

**See Also**

- `https://developer.android.com/reference/kotlin/android/provider/MediaStore.Audio.Media#EXTRA_MAX_BYTES:kotlin.String`

## Public constructors

### Media

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
Media()
```

## Public methods

### getContentUri

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static fun getContentUri(volumeName: String!): Uri!
```

Get the content:// style URI for the audio media table on the given volume.

| Parameters ||
|---|---|
| `volumeName` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the name of the volume to get the URI for |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/net/Uri.html#!` | the URI to the audio media table on the given volume |

### getContentUri

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static fun getContentUri(
    volumeName: String, 
    id: Long
): Uri
```

Get the content:// style URI for a single row in the audio table on the given volume.

| Parameters ||
|---|---|
| `volumeName` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): the name of the volume to get the URI for. This value cannot be `null`. |
| `id` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): the audio to get the URI for |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/net/Uri.html#` | the URI to the audio table on the given volume. This value cannot be `null`. |

### getContentUriForPath

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static fun getContentUriForPath(path: String): Uri?
```

**Deprecated:** *Apps may not have filesystem permissions to directly access this path.*

Get the content:// style URI for the given audio media file.

| Parameters ||
|---|---|
| `path` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/net/Uri.html#?` | This value may be `null`. |

## Properties

### EXTERNAL_CONTENT_URI

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val EXTERNAL_CONTENT_URI: Uri!
```

The content:// style URI for the "primary" external storage volume.

### INTERNAL_CONTENT_URI

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val INTERNAL_CONTENT_URI: Uri!
```

The content:// style URI for the internal storage.