Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [R Extensions 3](https://developer.android.com/sdkExtensions) Summary: [Constants](https://developer.android.com/reference/android/provider/CloudMediaProviderContract.AlbumColumns#constants) \| [Inherited Methods](https://developer.android.com/reference/android/provider/CloudMediaProviderContract.AlbumColumns#inhmethods)

# CloudMediaProviderContract.AlbumColumns

*** ** * ** ***

` public static final class CloudMediaProviderContract.AlbumColumns `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.CloudMediaProviderContract.AlbumColumns |

<br />

*** ** * ** ***

Constants related to an album item, including `https://developer.android.com/reference/android/database/Cursor` column names

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CloudMediaProviderContract.AlbumColumns#DATE_TAKEN_MILLIS` Timestamp of the most recently taken photo in an album, in milliseconds since January 1, 1970 00:00:00.0 UTC. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CloudMediaProviderContract.AlbumColumns#DISPLAY_NAME` Display name of a an album, used as the primary title displayed to a user. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CloudMediaProviderContract.AlbumColumns#ID` Unique ID of an album. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CloudMediaProviderContract.AlbumColumns#MEDIA_COUNT` Total count of all media within the album, including photos and videos. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CloudMediaProviderContract.AlbumColumns#MEDIA_COVER_ID` Media id to use as the album cover photo. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### DATE_TAKEN_MILLIS

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

```
public static final String DATE_TAKEN_MILLIS
```

Timestamp of the most recently taken photo in an album, in milliseconds since January 1, 1970 00:00:00.0 UTC.

Type: LONG

<br />

**See also:**

- `https://developer.android.com/reference/android/provider/CloudMediaProviderContract.MediaColumns#DATE_TAKEN_MILLIS`
- `https://developer.android.com/reference/java/lang/System#currentTimeMillis()`

Constant Value: "date_taken_millis"

### DISPLAY_NAME

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

```
public static final String DISPLAY_NAME
```

Display name of a an album, used as the primary title displayed to a user.

Type: STRING

<br />

Constant Value: "display_name"

### ID

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

```
public static final String ID
```

Unique ID of an album. This ID is both provided by and interpreted by a `https://developer.android.com/reference/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

<br />

Constant Value: "id"

### MEDIA_COUNT

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

```
public static final String MEDIA_COUNT
```

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

Type: LONG

<br />

Constant Value: "album_media_count"

### MEDIA_COVER_ID

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

```
public static final String MEDIA_COVER_ID
```

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

<br />

**See also:**

- `https://developer.android.com/reference/android/provider/CloudMediaProviderContract.MediaColumns#ID`

Constant Value: "album_media_cover_id"