CardEmulation.RegisterNfcEventCallback 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.
Register a callback for NFC events.
[Android.Runtime.Register("registerNfcEventCallback", "(Ljava/util/concurrent/Executor;Landroid/nfc/cardemulation/CardEmulation$NfcEventCallback;)V", "", ApiSince=36)]
public void RegisterNfcEventCallback(Java.Util.Concurrent.IExecutor executor, Android.Nfc.CardEmulators.CardEmulation.INfcEventCallback callback);
[<Android.Runtime.Register("registerNfcEventCallback", "(Ljava/util/concurrent/Executor;Landroid/nfc/cardemulation/CardEmulation$NfcEventCallback;)V", "", ApiSince=36)>]
member this.RegisterNfcEventCallback : Java.Util.Concurrent.IExecutor * Android.Nfc.CardEmulators.CardEmulation.INfcEventCallback -> unit
Parameters
- executor
- IExecutor
The Executor to run the call back with. This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.
- callback
- CardEmulation.INfcEventCallback
The callback to register. This value cannot be null.
- Attributes
Remarks
Register a callback for NFC events.
Android reference for android.nfc.cardemulation.CardEmulation.registerNfcEventCallback.
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.