HostApduService.ProcessPollingFrames(IList<PollingFrame>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當遠端裝置收到輪詢框架時,會呼叫此方法。
[Android.Runtime.Register("processPollingFrames", "(Ljava/util/List;)V", "GetProcessPollingFrames_Ljava_util_List_Handler", ApiSince=35)]
public virtual void ProcessPollingFrames(System.Collections.Generic.IList<Android.Nfc.CardEmulators.PollingFrame> frames);
[<Android.Runtime.Register("processPollingFrames", "(Ljava/util/List;)V", "GetProcessPollingFrames_Ljava_util_List_Handler", ApiSince=35)>]
abstract member ProcessPollingFrames : System.Collections.Generic.IList<Android.Nfc.CardEmulators.PollingFrame> -> unit
override this.ProcessPollingFrames : System.Collections.Generic.IList<Android.Nfc.CardEmulators.PollingFrame> -> unit
參數
- frames
- IList<PollingFrame>
這是對投票框架的描述。
- 屬性
備註
當遠端裝置收到輪詢框架時,會呼叫此方法。 若裝置處於觀察模式,服務應在準備進行交易時呼叫 NfcAdapter#allowTransaction() 。 若裝置未處於觀察模式,服務可利用輪詢框架資訊判斷後續呼叫後 #processCommandApdu(byte[], Bundle) 的處理方式。 服務必須覆寫此方法才能接收輪詢框架,否則基礎實作會丟棄該框架。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。