语言

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)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于