Condividi tramite


PhoneAccount.CapabilitySupportsTransactionalOperations Campo

Definizione

Attenzione

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

Flag che indica che PhoneAccount supporta l'uso delle API TelecomManager che utilizzano android.os.OutcomeReceivers o 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

Valore del campo

Value = 262144

Implementazioni

Attributi

Commenti

Flag che indica che PhoneAccount supporta l'uso delle API TelecomManager che utilizzano android.os.OutcomeReceivers o java.util.function.Consumers. Tenere presente che, se questa funzionalità è impostata, #CAPABILITY_SELF_MANAGED verrà modificata da Telecom quando questa PhoneAccount funzionalità viene registrata tramite TelecomManager#registerPhoneAccount(PhoneAccount).

android.os.OutcomeReceivers e java.util.function.Consumers rappresentano operazioni transazionali perché l'operazione può avere esito positivo o negativo. Un'app che vuole usare operazioni transazionali deve definire il comportamento per una chiamata API TelecomManager riuscita e non riuscita.

Documentazione java per android.telecom.PhoneAccount.CAPABILITY_SUPPORTS_TRANSACTIONAL_OPERATIONS.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a