Stay organized with collections
Save and categorize content based on your preferences.
SearchSuggestionColumns
class SearchSuggestionColumns
Represents a search suggestion provided by the 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 |
The display text for the search suggestion.
|
static String |
Media ID to use as the cover image for the search suggestion.
|
static String |
The unique identifier of the media set associated with the search suggestion.
|
static String |
The type of the search suggestion.
|
Constants
DISPLAY_TEXT
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"
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"
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"
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[],[],null,["# CloudMediaProviderContract.SearchSuggestionColumns\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [R Extensions 16](https://developer.android.com/sdkExtensions)\n\nSearchSuggestionColumns\n=======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/CloudMediaProviderContract.SearchSuggestionColumns \"View this page in Java\") \n\n```\nclass SearchSuggestionColumns\n```\n\n|---|--------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.provider.CloudMediaProviderContract.SearchSuggestionColumns](#) |\n\nRepresents a search suggestion provided by the [CloudMediaProvider](/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.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DISPLAY_TEXT](#DISPLAY_TEXT:kotlin.String) The display text for the search suggestion. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MEDIA_COVER_ID](#MEDIA_COVER_ID:kotlin.String) Media ID to use as the cover image for the search suggestion. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MEDIA_SET_ID](#MEDIA_SET_ID:kotlin.String) The unique identifier of the media set associated with the search suggestion. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [TYPE](#TYPE:kotlin.String) The type of the search suggestion. |\n\nConstants\n---------\n\n### DISPLAY_TEXT\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [R Extensions 16](https://developer.android.com/sdkExtensions) \n\n```\nstatic val DISPLAY_TEXT: String\n```\n\nThe display text for the search suggestion.\n\nThis 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.\n\nType: STRING \n\n Value: \"display_text\"\n\n### MEDIA_COVER_ID\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [R Extensions 16](https://developer.android.com/sdkExtensions) \n\n```\nstatic val MEDIA_COVER_ID: String\n```\n\nMedia ID to use as the cover image for the search suggestion.\n\nIf this field is not provided, the search suggestion will be shown with a default cover.\n\nType: LONG \n\n Value: \"media_cover_id\"\n\n### MEDIA_SET_ID\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [R Extensions 16](https://developer.android.com/sdkExtensions) \n\n```\nstatic val MEDIA_SET_ID: String\n```\n\nThe 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.\n\nType: STRING \n\n Value: \"media_set_id\"\n\n**See Also**\n\n- [android.provider.CloudMediaProviderContract.MediaSetColumns#ID](/reference/kotlin/android/provider/CloudMediaProviderContract.MediaSetColumns#ID:kotlin.String) \n\n### TYPE\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [R Extensions 16](https://developer.android.com/sdkExtensions) \n\n```\nstatic val TYPE: String\n```\n\nThe type of the search suggestion.\n\nThis must contain one of the values from various supported search suggestion types. These are: [SEARCH_SUGGESTION_TEXT](/reference/kotlin/android/provider/CloudMediaProviderContract#SEARCH_SUGGESTION_TEXT:kotlin.String), [SEARCH_SUGGESTION_FACE](/reference/kotlin/android/provider/CloudMediaProviderContract#SEARCH_SUGGESTION_FACE:kotlin.String), [SEARCH_SUGGESTION_DATE](/reference/kotlin/android/provider/CloudMediaProviderContract#SEARCH_SUGGESTION_DATE:kotlin.String), [SEARCH_SUGGESTION_LOCATION](/reference/kotlin/android/provider/CloudMediaProviderContract#SEARCH_SUGGESTION_LOCATION:kotlin.String), [SEARCH_SUGGESTION_ALBUM](/reference/kotlin/android/provider/CloudMediaProviderContract#SEARCH_SUGGESTION_ALBUM:kotlin.String)\n\nThis 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 \n\n Value: \"type\""]]