NfcA class

The class provides access to NfcA API for Android.

Acquire NfcA instance using NfcA.from.

Constructors

NfcA({required NfcTag tag, required Uint8List identifier, required Uint8List atqa, required int sak, required int maxTransceiveLength, required int timeout})
Constructs an instance with the given values for testing.
const

Properties

atqa Uint8List
The value from NfcA#atqa on Android.
final
hashCode int
The hash code for this object.
no setterinherited
identifier Uint8List
The value from Tag#id on Android.
final
maxTransceiveLength int
The value from NfcA#maxTransceiveLength on Android.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sak int
The value from NfcA#sak on Android.
final
timeout int
The value from NfcA#timeout on Android.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
transceive({required Uint8List data}) Future<Uint8List>
Sends the NfcA command to the tag.

Operators

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

Static Methods

from(NfcTag tag) NfcA?
Get an instance of NfcA for the given tag.