# CloudMediaProviderContract.SearchSuggestionColumns

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)

# SearchSuggestionColumns

*** ** * ** ***

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

```
class SearchSuggestionColumns
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                             ||
| ↳ | [android.provider.CloudMediaProviderContract.SearchSuggestionColumns](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.SearchSuggestionColumns#) |

Represents a search suggestion provided by the[CloudMediaProvider](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProvider). This is based on the user entered query. When the input query is empty (zero state), the provider can still return suggestions. Photo picker will show these zero state suggestions to the user, when nothing has been typed for search. This class contains the fields of SearchSuggestion.

## Summary

|                                                                                                                                                              Constants                                                                                                                                                              ||
|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DISPLAY_TEXT](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.SearchSuggestionColumns#DISPLAY_TEXT:kotlin.String) The display text for the search suggestion.                                   |
| 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.SearchSuggestionColumns#MEDIA_COVER_ID:kotlin.String) Media ID to use as the cover image for the search suggestion.             |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MEDIA_SET_ID](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.SearchSuggestionColumns#MEDIA_SET_ID:kotlin.String) The unique identifier of the media set associated with the search suggestion. |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [TYPE](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract.SearchSuggestionColumns#TYPE:kotlin.String) The type of the search suggestion.                                                            |

## Constants

### DISPLAY_TEXT

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_TEXT: String
```

The display text for the search suggestion.

This is the text shown to the user as a suggestion. Display text provided should match the current devices locale settings. If no display text, pass`null`in this column.

Type: STRING  

    Value: "display_text"

### 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 cover image for the search suggestion.

If this field is not provided, the search suggestion will be shown with a default cover.

Type: LONG  

    Value: "media_cover_id"

### MEDIA_SET_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_SET_ID: String
```

The unique identifier of the media set associated with the search suggestion. This will be used to query media items if user clicked on this suggestion.

Type: STRING  

    Value: "media_set_id"

**See Also**

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

### TYPE

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 TYPE: String
```

The type of the search suggestion.

This must contain one of the values from various supported search suggestion types. These are:[SEARCH_SUGGESTION_TEXT](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract#SEARCH_SUGGESTION_TEXT:kotlin.String),[SEARCH_SUGGESTION_FACE](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract#SEARCH_SUGGESTION_FACE:kotlin.String),[SEARCH_SUGGESTION_DATE](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract#SEARCH_SUGGESTION_DATE:kotlin.String),[SEARCH_SUGGESTION_LOCATION](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract#SEARCH_SUGGESTION_LOCATION:kotlin.String),[SEARCH_SUGGESTION_ALBUM](https://developer.android.com/reference/kotlin/android/provider/CloudMediaProviderContract#SEARCH_SUGGESTION_ALBUM:kotlin.String)

This will be used to display to user different suggestions in different way. As examples: for Location type, a thumbnail of location will be used. For faces, face cover id (if provided) will be used. Type: INTEGER  

    Value: "type"