readNDEFRecords static method
Read NDEF records (in decoded format, Android & iOS only).
There must be a valid session when invoking.
cached
only works on Android, allowing cached read (may obtain stale data).
On Android, this would cause any other open TagTechnology to be closed.
See ndef for usage of ndef.NDEFRecord
.
Implementation
static Future<List<ndef.NDEFRecord>> readNDEFRecords({bool? cached}) async {
return (await readNDEFRawRecords(cached: cached))
.map((r) => NDEFRecordConvert.fromRaw(r))
.toList();
}