CloudMediaProviderContract.SearchSuggestionColumns
public
static
final
class
CloudMediaProviderContract.SearchSuggestionColumns
extends Object
java.lang.Object | |
↳ | 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 | |
---|---|
String |
DISPLAY_TEXT
The display text for the search suggestion. |
String |
MEDIA_COVER_ID
Media ID to use as the cover image for the search suggestion. |
String |
MEDIA_SET_ID
The unique identifier of the media set associated with the search suggestion. |
String |
TYPE
The type of the search suggestion. |
Inherited methods | |
---|---|
Constants
DISPLAY_TEXT
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
Constant Value: "display_text"
MEDIA_COVER_ID
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
Constant Value: "media_cover_id"
MEDIA_SET_ID
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
Constant Value: "media_set_id"
TYPE
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
, CloudMediaProviderContract.SEARCH_SUGGESTION_FACE
,
CloudMediaProviderContract.SEARCH_SUGGESTION_DATE
, CloudMediaProviderContract.SEARCH_SUGGESTION_LOCATION
,
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
Constant Value: "type"