ITagTechnology.Connect Method

Definition

Enable I/O operations to the tag from this TagTechnology object.

[Android.Runtime.Register("connect", "()V", "GetConnectHandler:Android.Nfc.Tech.ITagTechnologyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Connect ();
[<Android.Runtime.Register("connect", "()V", "GetConnectHandler:Android.Nfc.Tech.ITagTechnologyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Connect : unit -> unit
Attributes

Exceptions

if there is an I/O failure, or connect is canceled

Remarks

Enable I/O operations to the tag from this TagTechnology object.

May cause RF activity and may block. Must not be called from the main application thread. A blocked call will be canceled with IOException by calling #close from another thread.

Only one TagTechnology object can be connected to a Tag at a time.

Applications must call #close when I/O operations are complete.

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

Java documentation for android.nfc.tech.TagTechnology.connect().

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

See also