SearchSuggestionColumns
class SearchSuggestionColumns
kotlin.Any | |
↳ | android.provider.CloudMediaProviderContract.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"
MEDIA_COVER_ID
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
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"
TYPE
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
, SEARCH_SUGGESTION_FACE
, SEARCH_SUGGESTION_DATE
, SEARCH_SUGGESTION_LOCATION
, 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
Value: "type"