NfcUtilIos class

The raw iOS surface.

Everything here is iOS-only; on Android these calls throw. The cross-platform NfcUtil covers the common path, and this covers what it deliberately does not express -- above all Apple Value Added Services, which has no Android counterpart.

Properties

hashCode int
The hash code for this object.
no setterinherited
onNdefFromBackground ← void Function(NdefMessage message)?
NDEF messages delivered by iOS background tag reading.
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

ndefQueryStatus(String handle) Future<QueryNdefStatusResponse>
The tag's live NDEF status, as opposed to the copy captured at discovery.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tagSessionReadingAvailable() Future<bool>
Whether this device can run a tag reader session at all.
tagSessionRestartPolling() Future<void>
Drops the current tag and starts polling again, without taking the reader sheet down.
tagSessionSetAlertMessage(String alertMessage) Future<void>
Changes the text on the reader sheet while the session is running.
takeInitialNdefMessage() Future<NdefMessage?>
The NDEF message that launched the app, if it was launched by a background tag read.
toString() String
A string representation of this object.
inherited
vasSessionBegin({required List<VasCommandConfiguration> configurations, required void onResponse(List<VasResponse> responses), Future<void> onError(NfcError error)?, void onBecameActive()?, String? alertMessage}) Future<void>
Starts a Value Added Services session, which reads Apple Wallet passes -- loyalty cards, membership cards -- rather than NFC tags.
vasSessionInvalidate({String? alertMessage, String? errorMessage}) Future<void>
Ends a VAS session. Never throws; the session may already be gone.
vasSessionReadingAvailable() Future<bool>
Whether this device can run a VAS session.
vasSessionSetAlertMessage(String alertMessage) Future<void>
Changes the text on a running VAS session's sheet.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance NfcUtilIos
no setter