Serializable, Comparable<IntentAgentConstant.OperationType>public static enum IntentAgentConstant.OperationType extends Enum<IntentAgentConstant.OperationType>
IntentAgent, such as starting an ability or sending a common event.SystemCapability.Notification#ANS| 枚举常量 | 说明 |
|---|---|
SEND_COMMON_EVENT |
Sends a common event.
|
START_ABILITIES |
Starts multiple abilities.
|
START_ABILITY |
Starts an ability with a UI.
|
START_FOREGROUND_SERVICE |
Starts a foreground ability without a UI.
|
START_SERVICE |
Starts an ability without a UI.
|
UNKNOWN_TYPE |
Unknown operation.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static IntentAgentConstant.OperationType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static IntentAgentConstant.OperationType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (IntentAgentConstant.OperationType c : IntentAgentConstant.OperationType.values()) System.out.println(c); |
public static final IntentAgentConstant.OperationType UNKNOWN_TYPE
public static final IntentAgentConstant.OperationType START_ABILITY
public static final IntentAgentConstant.OperationType START_ABILITIES
public static final IntentAgentConstant.OperationType START_SERVICE
public static final IntentAgentConstant.OperationType SEND_COMMON_EVENT
public static final IntentAgentConstant.OperationType START_FOREGROUND_SERVICE
public static IntentAgentConstant.OperationType[] values()
for (IntentAgentConstant.OperationType c : IntentAgentConstant.OperationType.values()) System.out.println(c);
public static IntentAgentConstant.OperationType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值