語言

IsoDep.SetTimeout(Int32) 方法

定義

以毫秒計時設定超 #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 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於