# CloudMediaProviderContract.SearchSuggestionColumns

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[R Extensions 16](https://developer.android.com/sdkExtensions)  
Summary:[Constants](https://developer.android.com/reference/android/provider/CloudMediaProviderContract.SearchSuggestionColumns#constants)\|[Inherited Methods](https://developer.android.com/reference/android/provider/CloudMediaProviderContract.SearchSuggestionColumns#inhmethods)  

# CloudMediaProviderContract.SearchSuggestionColumns

*** ** * ** ***

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

`
public
static
final

class
CloudMediaProviderContract.SearchSuggestionColumns
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|---------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.CloudMediaProviderContract.SearchSuggestionColumns |

<br />

*** ** * ** ***

Represents a search suggestion provided by the[CloudMediaProvider](https://developer.android.com/reference/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.  
**See also:**

- [CloudMediaProvider.onQuerySearchSuggestions(String, Bundle, CancellationSignal)](https://developer.android.com/reference/android/provider/CloudMediaProvider#onQuerySearchSuggestions(java.lang.String,%20android.os.Bundle,%20android.os.CancellationSignal))

## Summary

|                                                                                                                                       ### Constants                                                                                                                                        ||
|--------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | [DISPLAY_TEXT](https://developer.android.com/reference/android/provider/CloudMediaProviderContract.SearchSuggestionColumns#DISPLAY_TEXT) The display text for the search suggestion.                                   |
| [String](https://developer.android.com/reference/java/lang/String) | [MEDIA_COVER_ID](https://developer.android.com/reference/android/provider/CloudMediaProviderContract.SearchSuggestionColumns#MEDIA_COVER_ID) Media ID to use as the cover image for the search suggestion.             |
| [String](https://developer.android.com/reference/java/lang/String) | [MEDIA_SET_ID](https://developer.android.com/reference/android/provider/CloudMediaProviderContract.SearchSuggestionColumns#MEDIA_SET_ID) The unique identifier of the media set associated with the search suggestion. |
| [String](https://developer.android.com/reference/java/lang/String) | [TYPE](https://developer.android.com/reference/android/provider/CloudMediaProviderContract.SearchSuggestionColumns#TYPE) The type of the search suggestion.                                                            |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/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](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/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](https://developer.android.com/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](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### DISPLAY_TEXT

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

```
public static final String DISPLAY_TEXT
```

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

<br />

Constant Value: "display_text"  

### MEDIA_COVER_ID

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

```
public static final String MEDIA_COVER_ID
```

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

<br />

Constant Value: "media_cover_id"  

### MEDIA_SET_ID

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

```
public static final String MEDIA_SET_ID
```

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

<br />

**See also:**

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

Constant Value: "media_set_id"  

### TYPE

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

```
public static final String TYPE
```

The type of the search suggestion.

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

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

<br />

Constant Value: "type"