NfcAdapter.AllowOneTransaction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Temporarily disables observe mode to allow a single Host Card Emulation (HCE) transaction to proceed.
[Android.Runtime.Register("allowOneTransaction", "()V", "", ApiSince=37)]
public void AllowOneTransaction();
[<Android.Runtime.Register("allowOneTransaction", "()V", "", ApiSince=37)>]
member this.AllowOneTransaction : unit -> unit
- Attributes
Remarks
Temporarily disables observe mode to allow a single Host Card Emulation (HCE) transaction to proceed.
This is typically used in scenarios where an application, such as a digital wallet, needs to perform a tap-to-pay transaction while observe mode is active. After calling this method, observe mode will be disabled, allowing the HCE service to be selected by the reader. Observe mode will be automatically re-enabled after the transaction is complete or if the NFC field is lost.
Android reference for android.nfc.NfcAdapter.allowOneTransaction.
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.