public abstract class SearchEngineBase extends Object implements PrimaryContentProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
LEX
Keyword in search URI indicates use FTS for search suggestions
|
static String |
TAG |
| Constructor and Description |
|---|
SearchEngineBase(String providerAuthority,
android.content.Context context,
Locale locale)
Create SearchEngineBase object
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getLimitFromUri(android.net.Uri uri)
Returns limit value from Uri or 0 if absent or invalid
|
String |
getType(int queryType,
android.net.Uri uri)
Returns MIME type for suggestions data
|
void |
setFtsQuery(FtsQuery ftsQuery)
Set FtsQuery to replace default once database initialization is complete
|
public static final String TAG
public static final String LEX
public void setFtsQuery(FtsQuery ftsQuery)
ftsQuery - public String getType(int queryType, android.net.Uri uri)
queryType - UriMatcher valueuri - URI matched by UriMatcherIllegalArgumentException - if UriMatcher value does not match one for a suggestion type URIpublic static int getLimitFromUri(android.net.Uri uri)
uri - UriThis documentation is licensed by Andrew Bowley under the GPLv3 License.