Language

CardEmulation.INfcEventCallback.OnInternalErrorReported(Int32) Method

Definition

This method is called when an internal error is reported by the NFC stack.

[Android.Runtime.Register("onInternalErrorReported", "(I)V", "GetOnInternalErrorReported_IHandler:Android.Nfc.CardEmulators.CardEmulation/INfcEventCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)]
public virtual void OnInternalErrorReported(int errorType);
[<Android.Runtime.Register("onInternalErrorReported", "(I)V", "GetOnInternalErrorReported_IHandler:Android.Nfc.CardEmulators.CardEmulation/INfcEventCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)>]
abstract member OnInternalErrorReported : int -> unit
override this.OnInternalErrorReported : int -> unit

Parameters

errorType
Int32

The type of the internal error. Value is one of the following: CardEmulation.NFC_INTERNAL_ERROR_UNKNOWN; CardEmulation.NFC_INTERNAL_ERROR_NFC_CRASH_RESTART; CardEmulation.NFC_INTERNAL_ERROR_NFC_HARDWARE_ERROR; CardEmulation.NFC_INTERNAL_ERROR_COMMAND_TIMEOUT

Attributes

Remarks

This method is called when an internal error is reported by the NFC stack. No action is required in response to these events as the NFC stack will automatically attempt to recover. These errors are reported for informational purposes only. Note that these errors can be reported when performing various internal NFC operations (such as during device shutdown) and cannot always be explicitly correlated with NFC transaction failures.

Android reference for android.nfc.cardemulation.CardEmulation.NfcEventCallback.onInternalErrorReported.

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.

Applies to