CardEmulation.INfcEventCallback.OnRemoteFieldChanged(Boolean) 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.
This method is called when the NFC controller is in card emulation mode and an NFC reader's field is either detected or lost.
[Android.Runtime.Register("onRemoteFieldChanged", "(Z)V", "GetOnRemoteFieldChanged_ZHandler:Android.Nfc.CardEmulators.CardEmulation/INfcEventCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)]
public virtual void OnRemoteFieldChanged(bool isDetected);
[<Android.Runtime.Register("onRemoteFieldChanged", "(Z)V", "GetOnRemoteFieldChanged_ZHandler:Android.Nfc.CardEmulators.CardEmulation/INfcEventCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)>]
abstract member OnRemoteFieldChanged : bool -> unit
override this.OnRemoteFieldChanged : bool -> unit
Parameters
- isDetected
- Boolean
true if an NFC reader is detected, false if it is lost
- Attributes
Remarks
This method is called when the NFC controller is in card emulation mode and an NFC reader's field is either detected or lost.
Android reference for android.nfc.cardemulation.CardEmulation.NfcEventCallback.onRemoteFieldChanged.
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.