rfid method
Used for the RFID chip processing.
config
- chip reading configuration.
Requires android.permission.NFC
android permission.
Implementation
void rfid(RFIDConfig config) {
config._disableUI
? _setRFIDCompletion(config._rfidCompletion!)
: _setDocumentReaderCompletion(config._completion!);
_setRFIDProgressCompletion(config.onProgress);
_setChipDetectedCompletion(config.onChipDetected);
_setRetryReadChipCompletion(config.onRetryReadChip);
_setPaCertificateCompletion(config.onRequestPACertificates);
_setTaCertificateCompletion(config.onRequestTACertificates);
_setTaSignatureCompletion(config.onRequestTASignature);
_bridge.invokeMethod(config._disableUI ? "readRFID" : "startRFIDReader", [
config.onRequestPACertificates != null,
config.onRequestTACertificates != null,
config.onRequestTASignature != null,
]);
}