RFID reader
Use the method below to open RFID chip reading controller and start its processing:
DocReader.shared.startRFIDReader(fromPresenter: self, completion: { (action, results, error) in
switch action {
case .complete:
print("Completed")
case .cancel:
print("Cancelled by user")
case .error:
print("Error: \(error)")
default:
break;
}
})
Use the method below to stop RFID chip reading programmatically:
DocReader.shared.stopRFIDReader {
print("Stopped")
}
Don't forget to specify the app IDs in the Info.plist file. They can be found here.
The RFID chip delegate:
DocReader.shared.rfidDelegate = self
For information about the methods you can implement for your delegate object, see the following page:
RGLDocReaderRFIDDelegateLast updated
Was this helpful?