PhoneAccount.CapabilitySupportsTransactionalOperations 字段

定义

注意

This constant will be removed in the future version. Use Android.Telecom.PhoneAccountCapability enum directly instead of this field.

指示它 PhoneAccount 支持使用使用 android.os.OutcomeReceivers 或 java.util.function.Consumers 的 TelecomManager API 的标志。

[Android.Runtime.Register("CAPABILITY_SUPPORTS_TRANSACTIONAL_OPERATIONS", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Telecom.PhoneAccountCapability enum directly instead of this field.", true)]
public const Android.Telecom.PhoneAccountCapability CapabilitySupportsTransactionalOperations = 262144;
[<Android.Runtime.Register("CAPABILITY_SUPPORTS_TRANSACTIONAL_OPERATIONS", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Telecom.PhoneAccountCapability enum directly instead of this field.", true)>]
val mutable CapabilitySupportsTransactionalOperations : Android.Telecom.PhoneAccountCapability

字段值

Value = 262144

实现

属性

注解

指示它 PhoneAccount 支持使用使用 android.os.OutcomeReceivers 或 java.util.function.Consumers 的 TelecomManager API 的标志。 请注意,如果设置了此功能,则通过注册此功能时PhoneAccountTelecomManager#registerPhoneAccount(PhoneAccount)#CAPABILITY_SELF_MANAGED电信将对此进行修改。

android.os.OutcomeReceivers 和 java.util.function.Consumers 表示事务操作,因为操作可以成功或失败。 希望使用事务操作的应用应为成功和失败的 TelecomManager API 调用定义行为。

适用于 . 的 android.telecom.PhoneAccount.CAPABILITY_SUPPORTS_TRANSACTIONAL_OPERATIONSJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于