public static class Intent.OperationBuilder extends Object
Operation instance.SystemCapability.Aafwk#INTENT| 构造器 | 说明 |
|---|---|
OperationBuilder() |
A constructor used to create an empty
OperationBuilder instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Operation |
build() |
Creates an
Operation object. |
Intent.OperationBuilder |
withAbilityName(Class<?> cls) |
Sets the
abilityName attribute for the OperationBuilder. |
Intent.OperationBuilder |
withAbilityName(String abilityName) |
Sets the
abilityName attribute for this OperationBuilder. |
Intent.OperationBuilder |
withAction(String action) |
Sets the
action attribute for this OperationBuilder. |
Intent.OperationBuilder |
withBundleName(String bundleName) |
Sets the
bundleName attribute for this OperationBuilder. |
Intent.OperationBuilder |
withDeviceId(String deviceId) |
Sets the
deviceId attribute for this OperationBuilder. |
Intent.OperationBuilder |
withEntities(Set<String> entities) |
Sets the
entities attribute for this OperationBuilder. |
Intent.OperationBuilder |
withFlags(int flags) |
Sets the
flags attribute for this OperationBuilder. |
Intent.OperationBuilder |
withUri(Uri uri) |
Sets the
uri attribute for this OperationBuilder. |
public OperationBuilder()
OperationBuilder instance.public Intent.OperationBuilder withAction(String action)
action attribute for this OperationBuilder.action - Indicates the action to set.OperationBuilder object containing the action.public Intent.OperationBuilder withEntities(Set<String> entities)
entities attribute for this OperationBuilder.entities - Indicates the entities to set.OperationBuilder object containing the entities.public Intent.OperationBuilder withUri(Uri uri)
uri attribute for this OperationBuilder.uri - Indicates the URI to set.OperationBuilder object containing the URI.public Intent.OperationBuilder withBundleName(String bundleName)
bundleName attribute for this OperationBuilder.bundleName - Indicates the bundle name to set.OperationBuilder object containing the bundle name.public Intent.OperationBuilder withFlags(int flags)
flags attribute for this OperationBuilder.flags - Indicates the flags to set.OperationBuilder object containing the flags.public Intent.OperationBuilder withDeviceId(String deviceId)
deviceId attribute for this OperationBuilder.deviceId - Indicates the device ID to set.OperationBuilder object containing the device ID.public Intent.OperationBuilder withAbilityName(String abilityName)
abilityName attribute for this OperationBuilder.abilityName - Indicates the ability name to set.OperationBuilder object containing the ability name.public Intent.OperationBuilder withAbilityName(Class<?> cls)
abilityName attribute for the OperationBuilder.cls - Indicates the class name to be set as the value of the abilityName attribute.OperationBuilder that contains the specified abilityName attribute.