# CloudMediaProviderContract.AlbumColumns

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

# AlbumColumns

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/provider/CloudMediaProviderContract.AlbumColumns "View this page in Java")  

```
class AlbumColumns
```

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

Constants related to an album item, including[Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)column names

## Summary

|                                                                                                                                                                          Constants                                                                                                                                                                           ||
|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATE_TAKEN_MILLIS](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.AlbumColumns#DATE_TAKEN_MILLIS:kotlin.String) Timestamp of the most recently taken photo in an album, in milliseconds since January 1, 1970 00:00:00. |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DISPLAY_NAME](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.AlbumColumns#DISPLAY_NAME:kotlin.String) Display name of a an album, used as the primary title displayed to a user.                                        |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ID](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.AlbumColumns#ID:kotlin.String) Unique ID of an album.                                                                                                                |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MEDIA_COUNT](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.AlbumColumns#MEDIA_COUNT:kotlin.String) Total count of all media within the album, including photos and videos.                                             |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MEDIA_COVER_ID](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.AlbumColumns#MEDIA_COVER_ID:kotlin.String) Media id to use as the album cover photo.                                                                     |

## Constants

### DATE_TAKEN_MILLIS

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

```
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"

**See Also**

- [android.provider.CloudMediaProviderContract.MediaColumns#DATE_TAKEN_MILLIS](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.MediaColumns#DATE_TAKEN_MILLIS:kotlin.String)
- [java.lang.System#currentTimeMillis()](https://developer.android.com/reference/kotlin/java/lang/System.html#currentTimeMillis())  

### DISPLAY_NAME

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

```
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

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

```
static val ID: String
```

Unique ID of an album. This ID is both provided by and interpreted by a[CloudMediaProvider](https://developer.android.com/reference/kotlin/android/provider/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"

### MEDIA_COUNT

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

```
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](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProvider#onQueryAlbums(android.os.Bundle))result, i.e. zero is not a valid media count.

Type: LONG  

    Value: "album_media_count"

### MEDIA_COVER_ID

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

```
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"

**See Also**

- [android.provider.CloudMediaProviderContract.MediaColumns#ID](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.MediaColumns#ID:kotlin.String)