NfcManager class abstract

Provides access to the NFC session.

Constructors

NfcManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkAvailability() Future<NfcAvailability>
Checks the availability of NFC on the current device.
isAvailable() Future<bool>
Whether the NFC session is available.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startSession({required Set<NfcPollingOption> pollingOptions, required void onDiscovered(NfcTag tag), String? alertMessageIos, bool invalidateAfterFirstReadIos = true, void onSessionErrorIos(NfcReaderSessionErrorIos)?, bool noPlatformSoundsAndroid = false}) Future<void>
Starts the NFC session and register callbacks.
stopSession({String? alertMessageIos, String? errorMessageIos}) Future<void>
Stops the NFC session and unregister callbacks.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance NfcManager
The default instance of NfcManager to use.
no setter