I have installed this plugin - https://capacitorjs.com/docs/apis/barcode-scanner.
In Package.json - @capacitor/barcode-scanner": "^2.0.4"
As I did not see any official documentation for this - no git or npm repo.
I have found your documentation.
Here is my code:
const result = await CapacitorBarcodeScanner.scanBarcode({
hint: CapacitorBarcodeScannerTypeHint.ALL,
scanInstructions: "Please scan a barcode",
scanButton: true,
scanText: "Scan",
cameraDirection: CapacitorBarcodeScannerCameraDirection.BACK,
scanOrientation: CapacitorBarcodeScannerScanOrientation.ADAPTIVE,
android: {
scanningLibrary: CapacitorBarcodeScannerAndroidScanningLibrary.ZXING
}
});
if(result.ScanResult){
await this.closeModal(result.ScanResult);
}
else {
await this.closeModal();
}
But its throwing an error : {"code":"UNIMPLEMENTED"}
Can you please help me how to fix this.