public class SearchableEntity extends Object
The search-source application can set a SearchableEntity,
using which a fusion search application launches an ability when users click an item in the search result.
SystemCapability.Data#DATA_SEARCH| 构造器 | 说明 |
|---|---|
SearchableEntity(String bundleName,
String appId,
String permission,
String intentAction,
String componentName,
boolean isAllowGlobalSearch,
int versionCode,
String versionName) |
A parameterized constructor used to create a
SearchableEntity instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getAppId() |
Obtains the unique ID of the application whose ability will be launched.
|
String |
getBundleName() |
Obtains the bundle name of the ability that will be launched.
|
String |
getComponentName() |
Obtains the class name of the ability that will be launched.
|
String |
getIntentAction() |
Obtains the intent action declared in the intent filter of the ability that will be launched.
|
String |
getPermission() |
Obtains the permission required for starting the ability.
|
int |
getVersionCode() |
Obtains the version code of this
SearchableEntity. |
String |
getVersionName() |
Obtains the version name of this
SearchableEntity. |
boolean |
isAllowGlobalSearch() |
Checks whether the indexes of this application can be searched in a fusion search.
|
String |
toString() |
Returns a string representation of the object.
|
public SearchableEntity(String bundleName, String appId, String permission, String intentAction, String componentName, boolean isAllowGlobalSearch, int versionCode, String versionName)
SearchableEntity instance.bundleName - Indicates the bundle name of the ability that will be launched.appId - Indicates the unique ID of the application whose ability will be launched.permission - Indicates the permission required for starting the ability.intentAction - Indicates the intent action declared
in the intent filter of the ability that will be launched.componentName - Indicates the class name of the ability that will be launched.isAllowGlobalSearch - Indicates whether the indexes of this application can be searched in a fusion search.versionCode - Indicates the version code of this SearchableEntity.versionName - Indicates the version name of this SearchableEntity.public String toString()
ObjecttoString 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())
public String getBundleName()
public String getAppId()
public String getPermission()
public String getIntentAction()
public String getComponentName()
public boolean isAllowGlobalSearch()
true if the indexes of this application can be searched in a fusion search;
returns false otherwise.public int getVersionCode()
SearchableEntity.SearchableEntity.public String getVersionName()
SearchableEntity.SearchableEntity.