public class SuggestionCursorParameters extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
QUERY_TEXT_KEY
Key used for Bundle search query text
|
| Constructor and Description |
|---|
SuggestionCursorParameters(android.os.Bundle bundle,
android.net.Uri uri,
int limit)
Create a SuggestionCursorParameters object
|
SuggestionCursorParameters(String query,
android.net.Uri uri,
int limit)
Create a SuggestionCursorParameters object
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getProjection()
Returns a list of which columns to return
|
static String |
getQuery(android.os.Bundle bundle)
Extract query from suggestion bundle
|
String |
getSelection()
Set A filter declaring which rows to return, formatted as an
SQL WHERE clause (excluding the WHERE itself).
|
String[] |
getSelectionArgs()
Returns a filter declaring which rows to return
|
String |
getSortOrder()
Returns how to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself).
|
android.net.Uri |
getUri()
Returns the URI, using the content:// scheme, for the content to retrieve
|
void |
setProjection(String[] projection)
Set a list of which columns to return
|
void |
setSortOrder(String sortOrder)
Set how to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself).
|
public static final String QUERY_TEXT_KEY
public SuggestionCursorParameters(android.os.Bundle bundle,
android.net.Uri uri,
int limit)
bundle - Bundle created by SearchManager to pass the query texturi - The URI, using the content:// scheme, for the content to retrievelimit - The maximum number of items to retrieve or unlimited if zeropublic SuggestionCursorParameters(String query, android.net.Uri uri, int limit)
query - Qsuery texturi - The URI, using the content:// scheme, for the content to retrievelimit - The maximum number of items to retrieve or unlimited if zeropublic String[] getProjection()
public void setProjection(String[] projection)
projection - String[]public String getSortOrder()
public void setSortOrder(String sortOrder)
sortOrder - Stringpublic android.net.Uri getUri()
public String getSelection()
public String[] getSelectionArgs()
public static String getQuery(android.os.Bundle bundle)
bundle - Bundle created by SearchManager to pass the query textThis documentation is licensed by Andrew Bowley under the GPLv3 License.