Stay organized with collections
Save and categorize content based on your preferences.
AlbumColumns
class AlbumColumns
Constants related to an album item, including Cursor
column names
Summary
Constants |
static String |
Timestamp of the most recently taken photo in an album, in milliseconds since January 1, 1970 00:00:00.
|
static String |
Display name of a an album, used as the primary title displayed to a user.
|
static String |
Unique ID of an album.
|
static String |
Total count of all media within the album, including photos and videos.
|
static String |
Media id to use as the album cover photo.
|
Constants
DATE_TAKEN_MILLIS
static val DATE_TAKEN_MILLIS: String
Timestamp of the most recently taken photo in an album, in milliseconds since January 1, 1970 00:00:00.0 UTC.
Type: LONG
Value: "date_taken_millis"
DISPLAY_NAME
static val DISPLAY_NAME: String
Display name of a an album, used as the primary title displayed to a user.
Type: STRING
Value: "display_name"
ID
static val ID: String
Unique ID of an album. This ID is both provided by and interpreted by a CloudMediaProvider
.
Each album item must have a unique ID within a media collection.
A provider should return durable IDs, since they will be used to cache album information in the OS.
Type: STRING
Value: "id"
static val MEDIA_COUNT: String
Total count of all media within the album, including photos and videos.
If this field is not provided, albums will be shown without a count in the Photo Picker.
Empty albums should be omitted from the CloudMediaProvider.onQueryAlbums
result, i.e. zero is not a valid media count.
Type: LONG
Value: "album_media_count"
static val MEDIA_COVER_ID: String
Media id to use as the album cover photo.
If this field is not provided, albums will be shown in the Photo Picker without a cover photo.
Type: LONG
Value: "album_media_cover_id"
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# CloudMediaProviderContract.AlbumColumns\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [R Extensions 3](https://developer.android.com/sdkExtensions)\n\nAlbumColumns\n============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/CloudMediaProviderContract.AlbumColumns \"View this page in Java\") \n\n```\nclass AlbumColumns\n```\n\n|---|---------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.provider.CloudMediaProviderContract.AlbumColumns](#) |\n\nConstants related to an album item, including [Cursor](../database/Cursor.html#) column names\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATE_TAKEN_MILLIS](#DATE_TAKEN_MILLIS:kotlin.String) Timestamp of the most recently taken photo in an album, in milliseconds since January 1, 1970 00:00:00. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DISPLAY_NAME](#DISPLAY_NAME:kotlin.String) Display name of a an album, used as the primary title displayed to a user. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ID](#ID:kotlin.String) Unique ID of an album. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MEDIA_COUNT](#MEDIA_COUNT:kotlin.String) Total count of all media within the album, including photos and videos. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MEDIA_COVER_ID](#MEDIA_COVER_ID:kotlin.String) Media id to use as the album cover photo. |\n\nConstants\n---------\n\n### DATE_TAKEN_MILLIS\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [R Extensions 3](https://developer.android.com/sdkExtensions) \n\n```\nstatic val DATE_TAKEN_MILLIS: String\n```\n\nTimestamp of the most recently taken photo in an album, in milliseconds since January 1, 1970 00:00:00.0 UTC.\n\nType: LONG \n\n Value: \"date_taken_millis\"\n\n**See Also**\n\n- [android.provider.CloudMediaProviderContract.MediaColumns#DATE_TAKEN_MILLIS](/reference/kotlin/android/provider/CloudMediaProviderContract.MediaColumns#DATE_TAKEN_MILLIS:kotlin.String)\n- [java.lang.System#currentTimeMillis()](../../java/lang/System.html#currentTimeMillis()) \n\n### DISPLAY_NAME\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [R Extensions 3](https://developer.android.com/sdkExtensions) \n\n```\nstatic val DISPLAY_NAME: String\n```\n\nDisplay name of a an album, used as the primary title displayed to a user.\n\nType: STRING \n\n Value: \"display_name\"\n\n### ID\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [R Extensions 3](https://developer.android.com/sdkExtensions) \n\n```\nstatic val ID: String\n```\n\nUnique ID of an album. This ID is both provided by and interpreted by a [CloudMediaProvider](/reference/kotlin/android/provider/CloudMediaProvider).\n\nEach album item must have a unique ID within a media collection.\n\nA provider should return durable IDs, since they will be used to cache album information in the OS.\n\nType: STRING \n\n Value: \"id\"\n\n### MEDIA_COUNT\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [R Extensions 3](https://developer.android.com/sdkExtensions) \n\n```\nstatic val MEDIA_COUNT: String\n```\n\nTotal count of all media within the album, including photos and videos.\n\nIf this field is not provided, albums will be shown without a count in the Photo Picker.\n\nEmpty albums should be omitted from the [CloudMediaProvider.onQueryAlbums](/reference/kotlin/android/provider/CloudMediaProvider#onQueryAlbums(android.os.Bundle)) result, i.e. zero is not a valid media count.\n\nType: LONG \n\n Value: \"album_media_count\"\n\n### MEDIA_COVER_ID\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [R Extensions 3](https://developer.android.com/sdkExtensions) \n\n```\nstatic val MEDIA_COVER_ID: String\n```\n\nMedia id to use as the album cover photo.\n\nIf this field is not provided, albums will be shown in the Photo Picker without a cover photo.\n\nType: LONG \n\n Value: \"album_media_cover_id\"\n\n**See Also**\n\n- [android.provider.CloudMediaProviderContract.MediaColumns#ID](/reference/kotlin/android/provider/CloudMediaProviderContract.MediaColumns#ID:kotlin.String)"]]