Stay organized with collections
Save and categorize content based on your preferences.
public
static
final
class
CloudMediaProviderContract.AlbumColumns
extends Object
Constants related to an album item, including Cursor
column names
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(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
|
wait(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
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Constants
DATE_TAKEN_MILLIS
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
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
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"
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"
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"
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# CloudMediaProviderContract.AlbumColumns\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nAlso in [R Extensions 3](/sdkExtensions) \nSummary: [Constants](#constants) \\| [Inherited Methods](#inhmethods) \n\nCloudMediaProviderContract.AlbumColumns\n=======================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/provider/CloudMediaProviderContract.AlbumColumns \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\nfinal\n\nclass\nCloudMediaProviderContract.AlbumColumns\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------------------------------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | android.provider.CloudMediaProviderContract.AlbumColumns |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nConstants related to an album item, including [Cursor](/reference/android/database/Cursor) column names\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](/reference/java/lang/String) | [DATE_TAKEN_MILLIS](/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. |\n| [String](/reference/java/lang/String) | [DISPLAY_NAME](/reference/android/provider/CloudMediaProviderContract.AlbumColumns#DISPLAY_NAME) Display name of a an album, used as the primary title displayed to a user. |\n| [String](/reference/java/lang/String) | [ID](/reference/android/provider/CloudMediaProviderContract.AlbumColumns#ID) Unique ID of an album. |\n| [String](/reference/java/lang/String) | [MEDIA_COUNT](/reference/android/provider/CloudMediaProviderContract.AlbumColumns#MEDIA_COUNT) Total count of all media within the album, including photos and videos. |\n| [String](/reference/java/lang/String) | [MEDIA_COVER_ID](/reference/android/provider/CloudMediaProviderContract.AlbumColumns#MEDIA_COVER_ID) Media id to use as the album cover photo. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/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 `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/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` | ` `[wait](/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` | ` `[wait](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nConstants\n---------\n\n### DATE_TAKEN_MILLIS\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nAlso in [R Extensions 3](/sdkExtensions) \n\n```\npublic static final String DATE_TAKEN_MILLIS\n```\n\nTimestamp of the most recently taken photo in an album, in milliseconds since\nJanuary 1, 1970 00:00:00.0 UTC.\n\n\nType: LONG\n\n\u003cbr /\u003e\n\n**See also:**\n\n- [CloudMediaProviderContract.MediaColumns.DATE_TAKEN_MILLIS](/reference/android/provider/CloudMediaProviderContract.MediaColumns#DATE_TAKEN_MILLIS)\n- [System.currentTimeMillis()](/reference/java/lang/System#currentTimeMillis())\n\nConstant Value:\n\n\"date_taken_millis\"\n\n\n### DISPLAY_NAME\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nAlso in [R Extensions 3](/sdkExtensions) \n\n```\npublic static final String DISPLAY_NAME\n```\n\nDisplay name of a an album, used as the primary title displayed to a\nuser.\n\n\nType: STRING\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"display_name\"\n\n\n### ID\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nAlso in [R Extensions 3](/sdkExtensions) \n\n```\npublic static final String ID\n```\n\nUnique ID of an album. This ID is both provided by and interpreted\nby a [CloudMediaProvider](/reference/android/provider/CloudMediaProvider).\n\n\nEach album item must have a unique ID within a media collection.\n\n\nA provider should return durable IDs, since they will be used to cache\nalbum information in the OS.\n\n\nType: STRING\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"id\"\n\n\n### MEDIA_COUNT\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nAlso in [R Extensions 3](/sdkExtensions) \n\n```\npublic static final String MEDIA_COUNT\n```\n\nTotal count of all media within the album, including photos and videos.\n\n\nIf this field is not provided, albums will be shown without a count in the Photo Picker.\n\n\nEmpty albums should be omitted from the [CloudMediaProvider.onQueryAlbums](/reference/android/provider/CloudMediaProvider#onQueryAlbums(android.os.Bundle)) result,\ni.e. zero is not a valid media count.\n\n\nType: LONG\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"album_media_count\"\n\n\n### MEDIA_COVER_ID\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nAlso in [R Extensions 3](/sdkExtensions) \n\n```\npublic static final String MEDIA_COVER_ID\n```\n\nMedia id to use as the album cover photo.\n\n\nIf this field is not provided, albums will be shown in the Photo Picker without a cover\nphoto.\n\n\nType: LONG\n\n\u003cbr /\u003e\n\n**See also:**\n\n- [CloudMediaProviderContract.MediaColumns.ID](/reference/android/provider/CloudMediaProviderContract.MediaColumns#ID)\n\nConstant Value:\n\n\"album_media_cover_id\""]]