IsoDep.SetTimeout(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以毫秒計時設定超 #transceive 時。
[Android.Runtime.Register("setTimeout", "(I)V", "")]
public void SetTimeout(int timeout);
[<Android.Runtime.Register("setTimeout", "(I)V", "")>]
member this.SetTimeout : int -> unit
參數
- timeout
- Int32
以毫秒計的超時值
- 屬性
備註
以毫秒計時設定超 #transceive 時。
超時僅適用於 ISO-DEP #transceive,當 被呼叫時 #close 會重置為預設值。
在執行需要長時間處理標籤的交易(如金鑰產生)時,設定較長的逾時可能很有用。
需要 android.Manifest.permission#NFC 權限。
Java 文件 android.nfc.tech.IsoDep.setTimeout(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。