RFID reader

Use the method below to open RFID chip reading controller and start its processing:

Java
Kotlin
Java
DocumentReader.Instance().startRFIDReader(MainActivity.this, new IDocumentReaderCompletion() {
@Override
public void onCompleted(int rfidAction, DocumentReaderResults results, Throwable error) {
// do something
}
});
Kotlin
DocumentReader.Instance().startRFIDReader(this@MainActivity) { rfidAction, results_RFIDReader, _ ->
// do something
}

Use the method below to stop RFID chip reading programmatically:

Java
Kotlin
Java
DocumentReader.Instance().stopRFIDReader(MainActivity.this);
Kotlin
DocumentReader.Instance().stopRFIDReader(this@MainActivity)