public abstract class SearchIndexableData extends Object
Modifier and Type | Field and Description |
---|---|
String |
className
The class name associated with the data.
|
Context |
context
The context for the data.
|
boolean |
enabled
Tells if the data will be included into the search results.
|
int |
iconResId
The icon resource ID associated with the data.
|
String |
intentAction
The Intent action associated with the data.
|
String |
intentTargetClass
The Intent target class associated with the data.
|
String |
intentTargetPackage
The Intent target package associated with the data.
|
String |
key
The key for the data.
|
Locale |
locale
The locale for the data
|
String |
packageName
The package name for retrieving the icon associated with the data.
|
int |
rank
The rank for the data.
|
int |
userId
The UserID for the data (in a multi user context).
|
Constructor and Description |
---|
SearchIndexableData()
Default constructor.
|
SearchIndexableData(Context ctx)
Constructor with a
Context . |
public Context context
Context
public Locale locale
public boolean enabled
public int rank
public String key
public int userId
public String className
intentAction
and intentTargetPackage
and intentTargetClass
.intentAction
,
intentTargetPackage
,
intentTargetClass
public String packageName
iconResId
public int iconResId
packageName
public String intentAction
className
is not relevant.intentTargetPackage
,
intentTargetClass
public String intentTargetPackage
intentAction
,
intentTargetClass
public String intentTargetClass
intentAction
,
intentTargetPackage
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())