InTheHand.Nfc 1.0.1

Prefix Reserved
dotnet add package InTheHand.Nfc --version 1.0.1
                    
NuGet\Install-Package InTheHand.Nfc -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="InTheHand.Nfc" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="InTheHand.Nfc" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="InTheHand.Nfc" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add InTheHand.Nfc --version 1.0.1
                    
#r "nuget: InTheHand.Nfc, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=InTheHand.Nfc&version=1.0.1
                    
Install InTheHand.Nfc as a Cake Addin
#tool nuget:?package=InTheHand.Nfc&version=1.0.1
                    
Install InTheHand.Nfc as a Cake Tool

InTheHand.Nfc

32feet.NET - personal area networking for .NET

A simple cross-platform NFC tag reader for .NET 8.0 and above. Supports Android, iOS and Mac Catalyst. The API is based on WebNFC and currently supports reading only.

Usage

Create new NdefReader

var reader = new NdefReader();
reader.Reading += Reader_Reading;

Start session

await reader.ScanAsync(cancellationToken);

Example event handler

private void Reader_Reading(object sender, NdefReadingEventArgs e)
{
    Dispatcher.Dispatch(() =>
    {
        foreach (var record in e.Message.Records)
        {
            if (record.RecordType == NdefRecordType.Mime)
            {
                DisplayAlert("NDEF", $"{record.MediaType} {((byte[])record.Data).Length}", "OK");
            }
            else
            {
                DisplayAlert("NDEF", $"{record.RecordType} {record.Data}", "OK");
            }
        }

        _cts.Cancel();
    });
}

32feet.NET

Further documentation, including the source, samples, current issues and Wiki are available on the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-android34.0 is compatible.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-ios18.0 is compatible.  net8.0-maccatalyst was computed.  net8.0-maccatalyst18.0 is compatible.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows10.0.19041 is compatible.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net8.0-android34.0

  • net8.0-ios18.0

    • No dependencies.
  • net8.0-maccatalyst18.0

    • No dependencies.
  • net8.0-windows10.0.19041

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 185 4/15/2025

.NET 8.0 Migration