RFID reader

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

#1

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

#2

DocumentReader.Instance().startRFIDReader(MainActivity.this, documentReaderCompletion, rfidReaderRequest);

private IDocumentReaderCompletion documentReaderCompletion = new IDocumentReaderCompletion() {
    @Override
    public void onCompleted(int action, DocumentReaderResults results, DocumentReaderException error) {
        // do something
    }
};

private IRfidReaderRequest rfidReaderRequest = new IRfidReaderRequest() {
    @Override
    public void onRequestPACertificates(byte[] serialNumber, PAResourcesIssuer issuer, IRfidPKDCertificateCompletion completion) {
        // do something
    }

    @Override
    public void onRequestTACertificates(String keyCAR, IRfidPKDCertificateCompletion completion) {
        // do something
    }

    @Override
    public void onRequestTASignature(TAChallenge challenge, IRfidTASignatureCompletion completion) {
        // do something
    }
};

#3

IRfidNotificationCompletion

Use the method below to stop RFID chip reading programmatically:

Last updated

Was this helpful?