From 39e8dc92e5b8d7b28972b50fd27996187b12c786 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Sun, 24 Nov 2024 16:27:18 +0100 Subject: [PATCH] Revert "chore(barcode-scanning): remove deprecated warnings for torch methods (#209)" This reverts commit 3492c0e40cf4e527a535e3b16b829e079defce20. --- packages/barcode-scanning/src/definitions.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/barcode-scanning/src/definitions.ts b/packages/barcode-scanning/src/definitions.ts index 7dac6ff..54da059 100644 --- a/packages/barcode-scanning/src/definitions.ts +++ b/packages/barcode-scanning/src/definitions.ts @@ -56,6 +56,7 @@ export interface BarcodeScannerPlugin { * Only available on Android and iOS. * * @since 0.0.1 + * @deprecated Use the [Capacitor Torch](https://capawesome.io/plugins/torch/) plugin instead. */ enableTorch(): Promise; /** @@ -64,6 +65,7 @@ export interface BarcodeScannerPlugin { * Only available on Android and iOS. * * @since 0.0.1 + * @deprecated Use the [Capacitor Torch](https://capawesome.io/plugins/torch/) plugin instead. */ disableTorch(): Promise; /** @@ -72,6 +74,7 @@ export interface BarcodeScannerPlugin { * Only available on Android and iOS. * * @since 0.0.1 + * @deprecated Use the [Capacitor Torch](https://capawesome.io/plugins/torch/) plugin instead. */ toggleTorch(): Promise; /** @@ -80,6 +83,7 @@ export interface BarcodeScannerPlugin { * Only available on Android and iOS. * * @since 0.0.1 + * @deprecated Use the [Capacitor Torch](https://capawesome.io/plugins/torch/) plugin instead. */ isTorchEnabled(): Promise; /** @@ -88,6 +92,7 @@ export interface BarcodeScannerPlugin { * Only available on Android and iOS. * * @since 0.0.1 + * @deprecated Use the [Capacitor Torch](https://capawesome.io/plugins/torch/) plugin instead. */ isTorchAvailable(): Promise; /**