|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.server.search.SearchableInfo
public final class SearchableInfo
| Nested Class Summary | |
|---|---|
class |
SearchableInfo.ActionKeyInfo
Private class used to hold the "action key" configuration |
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.Creator<T> |
| Field Summary | |
|---|---|
static Parcelable.Creator<SearchableInfo> |
CREATOR
Support for parcelable and aidl operations. |
(package private) static int |
DBG_INHIBIT_SUGGESTIONS
|
(package private) static String |
LOG_TAG
|
boolean |
mBadgeIcon
|
boolean |
mBadgeLabel
|
boolean |
mQueryRewriteFromData
|
boolean |
mQueryRewriteFromText
|
boolean |
mSearchable
|
ComponentName |
mSearchActivity
|
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
SearchableInfo(Parcel in)
Instantiate a new SearchableInfo from the data in a Parcel that was previously written with writeToParcel(Parcel, int). |
|
| Method Summary | |
|---|---|
static void |
buildSearchableList(Context context)
Super-factory. |
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation. |
SearchableInfo.ActionKeyInfo |
findActionKey(int keyCode)
If any action keys were defined for this searchable activity, look up and return. |
Context |
getActivityContext(Context context)
Get the context for the searchable activity. |
static SearchableInfo |
getDefaultSearchable()
Provides the system-default search activity, which you can use whenever getSearchableInfo() returns null; |
int |
getHintId()
Return the resource Id of the hint text. |
int |
getIconId()
Return the icon Id specified by the Searchable_icon meta-data entry. |
int |
getLabelId()
Return the "label" (user-visible name) of this searchable context. |
Context |
getProviderContext(Context context,
Context activityContext)
Get the context for the suggestions provider. |
static SearchableInfo |
getSearchableInfo(Context context,
ComponentName activity)
Factory. |
static ArrayList<SearchableInfo> |
getSearchablesList()
Return the list of searchable activities, for use in the drop-down. |
int |
getSearchButtonText()
Return the resource Id of replacement text for the "Search" button. |
String |
getSuggestAuthority()
Retrieve the authority for obtaining search suggestions. |
String |
getSuggestIntentAction()
Retrieve the (optional) intent action for use with these suggestions. |
String |
getSuggestIntentData()
Retrieve the (optional) intent data for use with these suggestions. |
String |
getSuggestPath()
Retrieve the path for obtaining search suggestions. |
String |
getSuggestSelection()
Retrieve the selection pattern for obtaining search suggestions. |
static void |
setDefaultSearchable(Context context,
ComponentName activity)
Set the default searchable activity (when none is specified). |
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final String LOG_TAG
static final int DBG_INHIBIT_SUGGESTIONS
public boolean mSearchable
public ComponentName mSearchActivity
public boolean mBadgeLabel
public boolean mBadgeIcon
public boolean mQueryRewriteFromData
public boolean mQueryRewriteFromText
public static final Parcelable.Creator<SearchableInfo> CREATOR
| Constructor Detail |
|---|
public SearchableInfo(Parcel in)
writeToParcel(Parcel, int).
in - The Parcel containing the previously written SearchableInfo,
positioned at the location in the buffer where it was written.| Method Detail |
|---|
public static void setDefaultSearchable(Context context,
ComponentName activity)
public static SearchableInfo getDefaultSearchable()
public String getSuggestAuthority()
public String getSuggestPath()
public String getSuggestSelection()
public String getSuggestIntentAction()
public String getSuggestIntentData()
public Context getActivityContext(Context context)
context - You need to supply a context to start with
public Context getProviderContext(Context context,
Context activityContext)
context - You need to supply a context to start withactivityContext - If we can determine that the provider and the activity are the
same, we'll just return this one.
public static SearchableInfo getSearchableInfo(Context context,
ComponentName activity)
activity - The name of the current activity, or null if the
activity does not define any explicit searchable metadata.public static void buildSearchableList(Context context)
context - a context we can use during this workpublic SearchableInfo.ActionKeyInfo findActionKey(int keyCode)
keyCode - The key that was pressed
public int getLabelId()
public int getHintId()
public int getIconId()
public int getSearchButtonText()
public static ArrayList<SearchableInfo> getSearchablesList()
public int describeContents()
Parcelable
describeContents in interface Parcelable
public void writeToParcel(Parcel dest,
int flags)
Parcelable
writeToParcel in interface Parcelabledest - The Parcel in which the object should be written.flags - Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||