Condividi tramite


IsoDep.SetTimeout(Int32) Method

Definition

Set the timeout of #transceive in milliseconds.

[Android.Runtime.Register("setTimeout", "(I)V", "")]
public void SetTimeout (int timeout);
[<Android.Runtime.Register("setTimeout", "(I)V", "")>]
member this.SetTimeout : int -> unit

Parameters

timeout
Int32

timeout value in milliseconds

Attributes

Remarks

Set the timeout of #transceive in milliseconds.

The timeout only applies to ISO-DEP #transceive, and is reset to a default value when #close is called.

Setting a longer timeout may be useful when performing transactions that require a long processing time on the tag such as key generation.

<p class="note">Requires the android.Manifest.permission#NFC permission.

Java documentation for android.nfc.tech.IsoDep.setTimeout(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to