CloudMediaProviderContract.MediaSetColumns


public static final class CloudMediaProviderContract.MediaSetColumns
extends Object

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


MediaSet represents a cohesive collection of related unique media items, sharing a common meaningful context or theme. This is the basic and fundamental unit for organizing related media items. MediaSet in this context is represented by a set of columns present in MediaSetColumns Examples of media sets include:

  • Faces of the same person
  • Photos of a specific location
  • All media as a search result to mountains
Note: AlbumColumns which denotes an album can also be represented using MediaSetColumns. But, it is recommended to keep using AlbumColumns for existing user albums and use MediaSet only for supported MediaCategories . The currently supported MediaCategory in photo picker are CloudMediaProviderContract.MEDIA_CATEGORY_TYPE_PEOPLE_AND_PETS. These are the fields of a MediaSet.

Summary

Constants

String DISPLAY_NAME

Display name of the media set.

String ID

Unique ID of the media set.

String MEDIA_COUNT

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

String MEDIA_COVER_ID

Media ID to use as the media set cover photo.

Inherited methods

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

DISPLAY_NAME

Added in R Extensions 16
public static final String DISPLAY_NAME

Display name of the media set. This display name provided should match the current devices locale settings. If there is no display name, pass null in this column. Type: STRING

Constant Value: "display_name"

ID

Added in R Extensions 16
public static final String ID

Unique ID of the media set. This ID is both provided by and interpreted by the CloudMediaProvider. Each media set must have a unique ID. A provider should return IDs which are stable, meaning it remains the same if nothing inside it changes, since they will be used to cache media set information in the OS. Type: STRING

Constant Value: "id"

MEDIA_COUNT

Added in R Extensions 16
public static final String MEDIA_COUNT

Total count of all media within the media set, including photos and videos. If this field is not provided, media sets will be shown without a count in the Photo Picker. Type: LONG

Constant Value: "media_count"

MEDIA_COVER_ID

Added in R Extensions 16
public static final String MEDIA_COVER_ID

Media ID to use as the media set cover photo. If this field is not provided, media sets will be shown in the Photo Picker with a default icon. Type: STRING

Constant Value: "media_cover_id"