Skip to content

Commit

Permalink
wip: web
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz committed Dec 20, 2023
1 parent aae2cc5 commit 2a3db28
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/barcode-scanning/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { CapacitorException, ExceptionCode, WebPlugin } from '@capacitor/core';

import type {
BarcodeScannerPlugin,
GetMaxZoomRatioResult,
GetMinZoomRatioResult,
GetZoomRatioResult,
IsGoogleBarcodeScannerModuleAvailableResult,
IsSupportedResult,
IsTorchAvailableResult,
Expand All @@ -10,6 +13,7 @@ import type {
ReadBarcodesFromImageOptions,
ReadBarcodesFromImageResult,
ScanResult,
SetZoomRatioOptions,
StartScanOptions,
} from './definitions';

Expand Down Expand Up @@ -59,6 +63,22 @@ export class BarcodeScannerWeb
throw this.createUnavailableException();
}

async setZoomRatio(_options: SetZoomRatioOptions): Promise<void> {
throw this.createUnavailableException();
}

async getZoomRatio(): Promise<GetZoomRatioResult> {
throw this.createUnavailableException();
}

async getMinZoomRatio(): Promise<GetMinZoomRatioResult> {
throw this.createUnavailableException();
}

async getMaxZoomRatio(): Promise<GetMaxZoomRatioResult> {
throw this.createUnavailableException();
}

async openSettings(): Promise<void> {
throw this.createUnavailableException();
}
Expand Down

0 comments on commit 2a3db28

Please sign in to comment.