CloudMediaProviderContract.MediaCategoryColumns


public static final class CloudMediaProviderContract.MediaCategoryColumns
extends Object

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


MediaCategory represents a broader structure that a MediaSetColumns or another MediaCategoryColumns belongs to. A MediaCategory in this context is represented by a set of columns present in MediaCategoryColumns A MediaCategory can have instances of other MediaCategories to support a multilevel hierarchy. Examples of MediaCategory:

  • A MediaCategory of people and pet faces which contains instances of MediaSets for different faces
  • A MediaCategory of locations which contains instances of MediaSets for different locations
The currently supported MediaCategory in photo picker are CloudMediaProviderContract.MEDIA_CATEGORY_TYPE_PEOPLE_AND_PETS. These are the fields of MediaCategory.

Summary

Constants

String DISPLAY_NAME

The display name of the media category.

String ID

The unique identifier of the media category.

String MEDIA_CATEGORY_TYPE

The type of the media category.

String MEDIA_COVER_ID1

The first cover media ID for displaying.

String MEDIA_COVER_ID2

The second cover media ID for displaying.

String MEDIA_COVER_ID3

The third cover media ID for displaying.

String MEDIA_COVER_ID4

The fourth cover media ID for displaying.

Inherited methods

Constants

DISPLAY_NAME

public static final String DISPLAY_NAME

The display name of the media category. 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

public static final String ID

The unique identifier of the media category. This ID is both provided by and interpreted by the CloudMediaProvider. 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 information in the OS. Type: STRING

Constant Value: "id"

MEDIA_CATEGORY_TYPE

public static final String MEDIA_CATEGORY_TYPE

The type of the media category. This must contain one of the values from the supported media category types. Currently supported types are: CloudMediaProviderContract.MEDIA_CATEGORY_TYPE_PEOPLE_AND_PETS ERROR(/#MEDIA_CATEGORY_TYPE_USER_ALBUMS) Type: INTEGER

Constant Value: "media_category_type"

MEDIA_COVER_ID1

public static final String MEDIA_COVER_ID1

The first cover media ID for displaying.

If none of the MEDIA_COVER_ID is provided, media category will be shown in the Photo Picker with a default icon. Otherwise, Photo Picker will show as many MEDIA_COVER_IDs as provided.

Type: STRING

Constant Value: "media_cover_id1"

MEDIA_COVER_ID2

public static final String MEDIA_COVER_ID2

The second cover media ID for displaying.

If none of the MEDIA_COVER_ID is provided, media category will be shown in the Photo Picker with a default icon. Otherwise, Photo Picker will show as many MEDIA_COVER_IDs as provided.

Type: STRING

Constant Value: "media_cover_id2"

MEDIA_COVER_ID3

public static final String MEDIA_COVER_ID3

The third cover media ID for displaying.

If none of the MEDIA_COVER_ID is provided, media category will be shown in the Photo Picker with a default icon. Otherwise, Photo Picker will show as many MEDIA_COVER_IDs as provided.

Type: STRING

Constant Value: "media_cover_id3"

MEDIA_COVER_ID4

public static final String MEDIA_COVER_ID4

The fourth cover media ID for displaying.

If none of the MEDIA_COVER_ID is provided, media category will be shown in the Photo Picker with a default icon. Otherwise, Photo Picker will show as many MEDIA_COVER_IDs as provided.

Type: STRING

Constant Value: "media_cover_id4"