CloudMediaProviderContract.AlbumColumns


public static final class CloudMediaProviderContract.AlbumColumns
extends Object

java.lang.Object
   ↳ android.provider.CloudMediaProviderContract.AlbumColumns


Constants related to an album item, including Cursor column names

Summary

Constants

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.

String DISPLAY_NAME

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

String ID

Unique ID of an album.

String MEDIA_COUNT

Total count of all media within the album, including photos and videos.

String MEDIA_COVER_ID

Media id to use as the album cover photo.

Inherited methods

Constants

DATE_TAKEN_MILLIS

Added in API level 33
Also in R Extensions 3
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

Constant Value: "date_taken_millis"

DISPLAY_NAME

Added in API level 33
Also in R Extensions 3
public static final String DISPLAY_NAME

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

Type: STRING

Constant Value: "display_name"

ID

Added in API level 33
Also in R Extensions 3
public static final String ID

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

Constant Value: "id"

MEDIA_COUNT

Added in API level 33
Also in R Extensions 3
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 CloudMediaProvider#onQueryAlbums result, i.e. zero is not a valid media count.

Type: LONG

Constant Value: "album_media_count"

MEDIA_COVER_ID

Added in API level 33
Also in R Extensions 3
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

Constant Value: "album_media_cover_id"