Skip to main content

QRScannerHelper

public class QRScannerHelper extends Object

↳ package com.onekosmos.blockid.sdk.cameramodule.QRCodeScanner


This is the helper class that provides QR scanning functionality.

Constructor​

public QRScannerHelper(Context context, IOnQRScanResponseListener onQRScanResponseListener, BIDScannerView bidScannerView)

  • Creates an object of QRScannerHelper.
Parameter
contextContext: Application's context.
onQRScanResponseListenerIOnQRScanResponseListener: The block to execute after the response is received.
bidScannerViewBIDScannerView: An object of BIDScannerView.

Method Summary​

TypeNameDescription
voidstartQRScanning()Starts the QR scanner.
voidstopQRScanning()Stops the QR scanner.

Method Detail​


startQRScanning​

public void startQRScanning()

  • Starts the QR scanner.

stopQRScanning​

public void stopQRScanning()

  • Stops the QR scanner.

Interface Summary​


IOnQRScanResponseListenerCallback for event when QR scanning is completed.

IOnQRScanResponseListener​

public interface IOnQRScanResponseListener

↳ package com.onekosmos.blockid.sdk.cameramodule.camera.qrCodeModule

  • Callback for event when QR scanning is completed.

Method Summary​

public void onQRScanResultResponse(String qrCodeData)

  • Called when QR scanning is completed.
Parameters
qrCodeDataString: Returns the QR code data after the scanning is completed.