From 2a3db28baf75e2003213a26f44e36a14c0f1290a Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Wed, 20 Dec 2023 19:25:18 +0100 Subject: [PATCH] wip: web --- packages/barcode-scanning/src/web.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/barcode-scanning/src/web.ts b/packages/barcode-scanning/src/web.ts index 331ab4f..2bee463 100644 --- a/packages/barcode-scanning/src/web.ts +++ b/packages/barcode-scanning/src/web.ts @@ -2,6 +2,9 @@ import { CapacitorException, ExceptionCode, WebPlugin } from '@capacitor/core'; import type { BarcodeScannerPlugin, + GetMaxZoomRatioResult, + GetMinZoomRatioResult, + GetZoomRatioResult, IsGoogleBarcodeScannerModuleAvailableResult, IsSupportedResult, IsTorchAvailableResult, @@ -10,6 +13,7 @@ import type { ReadBarcodesFromImageOptions, ReadBarcodesFromImageResult, ScanResult, + SetZoomRatioOptions, StartScanOptions, } from './definitions'; @@ -59,6 +63,22 @@ export class BarcodeScannerWeb throw this.createUnavailableException(); } + async setZoomRatio(_options: SetZoomRatioOptions): Promise { + throw this.createUnavailableException(); + } + + async getZoomRatio(): Promise { + throw this.createUnavailableException(); + } + + async getMinZoomRatio(): Promise { + throw this.createUnavailableException(); + } + + async getMaxZoomRatio(): Promise { + throw this.createUnavailableException(); + } + async openSettings(): Promise { throw this.createUnavailableException(); }