INNER CODE UNIT · Swift
activateNFC
dotintent/flutter-nfc-reader · ios/Classes/SwiftFlutterNfcReaderPlugin.swift:57
func activateNFC(_ instruction: String?) {
print("activate")
nfcSession = NFCNDEFReaderSession(delegate: self, queue: DispatchQueue(label: "queueName", attributes: .concurrent), invalidateAfterFirstRead: true)
// then setup a new session
if let instruction = instruction {
nfcSession?.alertMessage = instruction
}
// start
if let nfcSession = nfcSession {
nfcSession.begin()
}
}
func disableNFC() {