Udostępnij za pośrednictwem


PhoneAccount.CapabilitySupportsTransactionalOperations Field

Definition

Caution

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

Flag indicating that this PhoneAccount supports the use TelecomManager APIs that utilize android.os.OutcomeReceivers or java.util.function.Consumers.

[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

Field Value

Value = 262144

Implements

Attributes

Remarks

Flag indicating that this PhoneAccount supports the use TelecomManager APIs that utilize android.os.OutcomeReceivers or java.util.function.Consumers. Be aware, if this capability is set, #CAPABILITY_SELF_MANAGED will be amended by Telecom when this PhoneAccount is registered via TelecomManager#registerPhoneAccount(PhoneAccount).

android.os.OutcomeReceivers and java.util.function.Consumers represent transactional operations because the operation can succeed or fail. An app wishing to use transactional operations should define behavior for a successful and failed TelecomManager API call.

Java documentation for android.telecom.PhoneAccount.CAPABILITY_SUPPORTS_TRANSACTIONAL_OPERATIONS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to