CardEmulation.INfcEventCallback.OnNfcStateChanged(Int32) 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 adapter state changes.
[Android.Runtime.Register("onNfcStateChanged", "(I)V", "GetOnNfcStateChanged_IHandler:Android.Nfc.CardEmulators.CardEmulation/INfcEventCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)]
public virtual void OnNfcStateChanged(int state);
[<Android.Runtime.Register("onNfcStateChanged", "(I)V", "GetOnNfcStateChanged_IHandler:Android.Nfc.CardEmulators.CardEmulation/INfcEventCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)>]
abstract member OnNfcStateChanged : int -> unit
override this.OnNfcStateChanged : int -> unit
Parameters
- state
- Int32
The new NFC adapter state. Value is one of the following: NfcAdapter.STATE_OFF; NfcAdapter.STATE_TURNING_ON; NfcAdapter.STATE_ON; NfcAdapter.STATE_TURNING_OFF
- Attributes
Remarks
This method is called when the NFC adapter state changes.
Android reference for android.nfc.cardemulation.CardEmulation.NfcEventCallback.onNfcStateChanged.
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.