Skip to main content

RFIDScannerHelper

public class RFIDScannerHelper extends IRFIDResponseListener.

↳ package com.onekosmos.blockid.sdk.

  • This helper class handles RFID scanning (E-Passport Chip).

Constructor

public RFIDScannerHelper (@NonNull Context context, @NonNull IRFIDResponseListener listener)

Creates an object of RFIDScannerHelper.

ParameterDescription
contextContext: Application's context on top of which the RFID scanning feature will start.
listenerIRFIDResponseListener The block to execute after the response is received.

public RFIDScannerHelper (Context context, boolean isDataRequiredOnFail, IRFIDResponseListener listener)

Creates an object of RFIDScannerHelper. The scanner will throw an error if the document has already expired. If the document expires before gracePeriod, the scanner will complete the scan and return an advisory error.

ParameterDescription
contextContext: Application's context on top of which the RFID scanning feature will start.
isDataRequiredOnFailboolean: Indicates if the scanning failed, SDK must return the passport document data. The default value is false.
listenerIRFIDResponseListener The block to execute after the Passport document scanning is completed.