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 | |
|---|---|
| context | Context: Application's context. |
| onQRScanResponseListener | IOnQRScanResponseListener: The block to execute after the response is received. |
| bidScannerView | BIDScannerView: An object of BIDScannerView. |
Method Summary
| Type | Name | Description |
|---|---|---|
| boolean | isRunning() | Indicates if the QR scanner is running or not. |
| void | startQRScanning() | Starts the QR scanner. |
| void | stopQRScanning() | Stops the QR scanner. |
Method Detail
isRunning
public boolean isRunning()
- Indicates if the QR scanner is running or not.
startQRScanning
public void startQRScanning()
- Starts the QR scanner.
stopQRScanning
public void stopQRScanning()
- Stops the QR scanner.
Interface Summary
| IOnQRScanResponseListener | Callback 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 | |
|---|---|
| qrCodeData | String: Returns the QR code data after the scanning is completed. |