public final class ActionItem extends Schema<ActionItem>
This schema is used to create indexes for in-app actions. For example, after an index is added for the action of creating a note in a notepad application, the application user can search for this action in a global search. This allows for immediate access to action items within this application.
The schema supports index field actionName and all the fields in CommonItem.
Among these fields, identifier is mandatory and can be set via the
CommonItem#setIdentifier(String) method.
SystemCapability.Data#DATA_SEARCH| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
ACTION_NAME |
Indicates the index field name of
actionName. |
| 构造器 | 说明 |
|---|---|
ActionItem() |
A constructor used to create an
ActionItem instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getActionName() |
Obtains the value of the
actionName index field. |
static List<IndexForm> |
getActionSchema() |
Obtains the attributes of index fields in this index schema.
|
ActionItem |
setActionName(String actionName) |
Sets the
actionName index field. |
clear, get, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsString, getValues, isEmpty, put, put, put, put, put, remove, setValues, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlternateName, getCategory, getDateCreate, getDescription, getIdentifier, getKeywords, getName, getPotentialAction, getReserved1, getReserved2, getSubtitle, getThumbnailUrl, getTitle, getUrl, setAlternateName, setCategory, setDateCreate, setDescription, setIdentifier, setKeywords, setName, setPotentialAction, setReserved1, setReserved2, setSubtitle, setThumbnailUrl, setTitle, setUrlpublic ActionItem()
ActionItem instance.public static List<IndexForm> getActionSchema()
public ActionItem setActionName(String actionName)
actionName index field.
Attributes of this index field:
IndexForm.indexFieldName = "actionName";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
actionName - Indicates the action name to set.ActionItem object.public String getActionName()
actionName index field.actionName index field.