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")
}

The RFID chip delegate:

DocReader.shared.rfidDelegate = self

For information about the methods you can implement for your delegate object, see the following page:

RGLDocReaderRFIDDelegate

Last updated

Was this helpful?