Lingua

CardEmulation.INfcEventCallback.OnNfcStateChanged(Int32) Metodo

Definizione

Questo metodo viene chiamato quando lo stato dell'adattatore NFC cambia.

[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

Parametri

state
Int32

Nuovo stato dell'adattatore NFC. Il valore è uno dei seguenti: NfcAdapter.STATE_OFF; NfcAdapter.STATE_TURNING_ON; NfcAdapter.STATE_ON; NfcAdapter.STATE_TURNING_OFF

Attributi

Commenti

Questo metodo viene chiamato quando lo stato dell'adattatore NFC cambia.

Informazioni di riferimento su Android per android.nfc.cardemulation.CardEmulation.NfcEventCallback.onNfcStateChanged.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a