# CloudMediaProviderContract.MediaSetColumns

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

# MediaSetColumns

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/provider/CloudMediaProviderContract.MediaSetColumns "View this page in Java")  

```
class MediaSetColumns
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                             ||
| ↳ | [android.provider.CloudMediaProviderContract.MediaSetColumns](https://developer.android.com/reference/kotlin/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](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.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](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.AlbumColumns)which denotes an album can also be represented using[MediaSetColumns](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.MediaSetColumns#). But, it is recommended to keep using[AlbumColumns](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.AlbumColumns)for existing user albums and use MediaSet only for supported MediaCategories . The currently supported MediaCategory in photo picker are

- [MEDIA_CATEGORY_TYPE_PEOPLE_AND_PETS](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract#MEDIA_CATEGORY_TYPE_PEOPLE_AND_PETS:kotlin.String)
- [MEDIA_CATEGORY_TYPE_USER_ALBUMS](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract#MEDIA_CATEGORY_TYPE_USER_ALBUMS:kotlin.String)

These are the fields of a MediaSet.

<br />

## Summary

|                                                                                                                                                        Constants                                                                                                                                                        ||
|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DISPLAY_NAME](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.MediaSetColumns#DISPLAY_NAME:kotlin.String) Display name of the media set.                                            |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ID](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.MediaSetColumns#ID:kotlin.String) Unique ID of the media set.                                                                   |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MEDIA_COUNT](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.MediaSetColumns#MEDIA_COUNT:kotlin.String) Total count of all media within the media set, including photos and videos. |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MEDIA_COVER_ID](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.MediaSetColumns#MEDIA_COVER_ID:kotlin.String) Media ID to use as the media set cover photo.                         |

## Constants

### DISPLAY_NAME

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

```
static val DISPLAY_NAME: String
```

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  

    Value: "display_name"

### ID

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

```
static val ID: String
```

Unique ID of the media set. This ID is both provided by and interpreted by the[CloudMediaProvider](https://developer.android.com/reference/kotlin/android/provider/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  

    Value: "id"

### MEDIA_COUNT

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

```
static val MEDIA_COUNT: String
```

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  

    Value: "media_count"

### MEDIA_COVER_ID

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

```
static val MEDIA_COVER_ID: String
```

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  

    Value: "media_cover_id"

**See Also**

- [android.provider.CloudMediaProviderContract.MediaColumns#ID](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.MediaColumns#ID:kotlin.String)