ITagTechnologyExtensions.ConnectAsync(ITagTechnology) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Connects the specified technology to its tag on a thread-pool thread.
public static System.Threading.Tasks.Task ConnectAsync(this Android.Nfc.Tech.ITagTechnology self);
static member ConnectAsync : Android.Nfc.Tech.ITagTechnology -> System.Threading.Tasks.Task
Parameters
- self
- ITagTechnology
The tag technology to connect.
Returns
A task that represents the call to Connect().
Remarks
This managed extension uses Task.Run to call Connect(). Await the task before starting tag I/O. Only one technology can be connected to a tag at a time. Call Close() when I/O is complete.
The method has no cancellation-token parameter. Calling Close() from another thread cancels a blocked connection call with IOException; this is not task cancellation through a token.
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.