CardEmulation.INfcEventCallback.OnInternalErrorReported(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當 NFC 堆疊回報內部錯誤時,會呼叫此方法。
[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
參數
- errorType
- Int32
內部錯誤的類型。 價值屬於以下之一: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
- 屬性
備註
當 NFC 堆疊回報內部錯誤時,會呼叫此方法。 這些事件不需要任何回應,因為 NFC 堆疊會自動嘗試恢復。 這些錯誤僅供參考參考。 請注意,這些錯誤可在執行各種內部 NFC 操作時(例如裝置關機期間)被報告,且不一定能明確與 NFC 交易失敗相關聯。
Android 參考資料。android.nfc.cardemulation.CardEmulation.NfcEventCallback.onInternalErrorReported
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。