Reference: capabilities
Purpose: describe how the library reports what a platform, device and host support. Platforms: Android, iOS. Status: stable.
Read INfcService.Capabilities at any time: it does not need an activity, a session or a tag, and it never
starts the radio. CapabilitiesChanged fires only when the report changes.
Snapshot
NfcCapabilitySnapshot is immutable and contains:
| Member | Content |
|---|---|
Features |
One NfcFeatureCapability per NfcFeature. |
Diagnostics |
NfcCapabilityDiagnostic entries: Code, Kind (Limitation, ConfigurationRequired, RequiresValidation), optional Feature and HelpLink. |
Discovery |
NfcDiscoveryCapability: available backends, how protocol filters are applied, whether a system UI is required, and NDEF data/status provenance. |
Feature capability
| Field | Values | Meaning |
|---|---|---|
Support |
Native, Adapted, NotImplemented, UnsupportedByPlatform |
Static: how the provider implements the feature. Listed per platform in the capability matrix. |
Availability |
Ready, HardwareMissing, Disabled, ConfigurationMissing, SessionRequired, Suspended, Busy, Restricted, TagRequired, TagUnsupported, TagInvalidated, Unknown |
Runtime: whether it can be used now on this device and host. |
Cancellation |
for example SoftwareClose, SessionInvalidation, Unsupported, Unknown |
How cancellation reaches the native operation; see cancellation. |
ReasonCode, PortableReasonCode |
strings | Why the feature is not Ready; see reason codes. |
Features
NfcFeature |
Scope |
|---|---|
Discovery, NdefRead, NdefWrite, NdefMakeReadOnly, Iso7816, Iso15693, FeliCa, Mifare |
Portable. |
NdefFormat |
Android only; UnsupportedByPlatform on iOS. |
AndroidReaderMode, AndroidForegroundDispatch, AndroidIntentEntry, AndroidNativeAccess, AndroidIgnore, AndroidAdapterManagement |
Android only. |
LaunchEntry |
Launch from a tag, both platforms. |
A feature with the protocol.experimental diagnostic still needs physical-device evidence. Unsupported
features are reported, never emulated.
Related
- Static support per platform: capability matrix (generated, checked in CI).
- Configuration diagnostics and fixes: configure the Android manifest and iOS entitlements.
- Why unsupported features are reported rather than emulated: design choices.