Serializable, Comparable<IntentAgentConstant.Flags>public static enum IntentAgentConstant.Flags extends Enum<IntentAgentConstant.Flags>
IntentAgent.SystemCapability.Notification#ANS| 枚举常量 | 说明 |
|---|---|
CANCEL_PRESENT_FLAG |
Indicates that the existing
IntentAgent should be canceled before the new object is generated. |
CONSTANT_FLAG |
Indicates that the created
IntentAgent should be immutable. |
NO_BUILD_FLAG |
Indicates that
null is returned if the IntentAgent does not exist. |
ONE_TIME_FLAG |
Indicates that the
IntentAgent can be used only once. |
REPLACE_ACTION |
Indicates that the current value of
action can be replaced
when the IntentAgent is triggered. |
REPLACE_BUNDLE |
Indicates that the current value of
bundleName can be replaced
when the IntentAgent is triggered. |
REPLACE_ELEMENT |
Indicates that the current value of
element can be replaced
when the IntentAgent is triggered. |
REPLACE_ENTITIES |
Indicates that the current value of
entities can be replaced
when the IntentAgent is triggered. |
REPLACE_URI |
Indicates that the current value of
uri can be replaced when the IntentAgent is triggered. |
UPDATE_PRESENT_FLAG |
Indicates that the system only replaces the extra data of the existing
IntentAgent
with that of the new object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static IntentAgentConstant.Flags |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static IntentAgentConstant.Flags[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (IntentAgentConstant.Flags c : IntentAgentConstant.Flags.values()) System.out.println(c); |
public static final IntentAgentConstant.Flags ONE_TIME_FLAG
IntentAgent can be used only once.public static final IntentAgentConstant.Flags NO_BUILD_FLAG
null is returned if the IntentAgent does not exist.public static final IntentAgentConstant.Flags CANCEL_PRESENT_FLAG
IntentAgent should be canceled before the new object is generated.public static final IntentAgentConstant.Flags UPDATE_PRESENT_FLAG
IntentAgent
with that of the new object.public static final IntentAgentConstant.Flags CONSTANT_FLAG
IntentAgent should be immutable.public static final IntentAgentConstant.Flags REPLACE_ELEMENT
element can be replaced
when the IntentAgent is triggered.public static final IntentAgentConstant.Flags REPLACE_ACTION
action can be replaced
when the IntentAgent is triggered.public static final IntentAgentConstant.Flags REPLACE_URI
uri can be replaced when the IntentAgent is triggered.public static final IntentAgentConstant.Flags REPLACE_ENTITIES
entities can be replaced
when the IntentAgent is triggered.public static final IntentAgentConstant.Flags REPLACE_BUNDLE
bundleName can be replaced
when the IntentAgent is triggered.public static IntentAgentConstant.Flags[] values()
for (IntentAgentConstant.Flags c : IntentAgentConstant.Flags.values()) System.out.println(c);
public static IntentAgentConstant.Flags valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值