CardEmulation.RegisterNfcEventCallback 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
註冊NFC活動回撥。
[Android.Runtime.Register("registerNfcEventCallback", "(Ljava/util/concurrent/Executor;Landroid/nfc/cardemulation/CardEmulation$NfcEventCallback;)V", "", ApiSince=36)]
public void RegisterNfcEventCallback(Java.Util.Concurrent.IExecutor executor, Android.Nfc.CardEmulators.CardEmulation.INfcEventCallback callback);
[<Android.Runtime.Register("registerNfcEventCallback", "(Ljava/util/concurrent/Executor;Landroid/nfc/cardemulation/CardEmulation$NfcEventCallback;)V", "", ApiSince=36)>]
member this.RegisterNfcEventCallback : Java.Util.Concurrent.IExecutor * Android.Nfc.CardEmulators.CardEmulation.INfcEventCallback -> unit
參數
- executor
- IExecutor
執行者用來執行回撥。 這個值不可能為零值。 回調與監聽事件透過此執行器派遣,提供簡便控制使用執行緒的方式。 要透過應用程式的主執行緒派發事件,可以使用 Context.getMainExecutor()。 否則,提供一個執行者,將執行者派遣到適當的執行緒。
- callback
- CardEmulation.INfcEventCallback
回撥登記。 這個值不可能為零值。
- 屬性
備註
註冊NFC活動回撥。
Android 參考資料。android.nfc.cardemulation.CardEmulation.registerNfcEventCallback
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。