Nementis.Maui.NFC overview
Purpose: short orientation on what the library does and where to read next. Platforms: Android, iOS. Status: stable.
Nementis.Maui.NFC is a .NET 10, headless MAUI library for reading and writing NFC tags on Android and iOS. This page is a short orientation; the README is the authoritative integration guide, and the generated capability matrix is the authoritative list of what each platform supports.
The first public version is 2, because the library evolves an internal first version that was never released. The physical-device results behind each release are summarized in device validation.
Design goal
Android and iOS control the NFC hardware differently, and the user experience
for reading and writing tags differs too. The library exposes one portable
contract (INfcService, INfcScanSession, INfcTag, NfcResult) so an
application can share its NFC workflow between the two platforms. Features that
only one platform provides stay in platform-specific contracts.
The library reports only what it actually supports. When a feature is missing on a platform it returns an explicit typed result and a capability report; it never emulates the missing behavior.
Main features
| Feature | What it means for your app |
|---|---|
| Explicit, event-based sessions | Start a user-owned scan session, subscribe to TagDiscovered and await each operation; there is no polling for tag presence. ScanOnceAsync covers "one tap, one operation" and always closes the session. |
| Portable NDEF and protocol contracts | Tags expose portable views such as INfcNdefTag. ISO 7816, ISO 15693, FeliCa and MIFARE Ultralight views are available where the matrix reports them, some as experimental pending device evidence. |
| Truthful capability reports | INfcService.Capabilities classifies each feature as Native, Adapted, NotImplemented or UnsupportedByPlatform, separately from runtime availability (permissions, hardware, radio state, host configuration). The capability matrix is generated from these reports and checked in CI. |
| Typed results and safe mutation | Expected failures, including cancellation and timeouts, are typed NfcResult outcomes. Mutation, verification and cleanup are reported separately; formatting and locking are separate, explicitly confirmed calls. |
| Platform-specific extensions | Android reader mode, foreground dispatch, intent entry, raw technologies, MIFARE Classic, formatting, ignore and adapter management are Android-only and reported as UnsupportedByPlatform on iOS. |
Out of scope
Tag or card emulation (HCE), payments, secure elements, privileged radio control and continuous background scanning are not provided by this library.