Skip to content

Commit

Permalink
Revert "chore(barcode-scanning): remove deprecated warnings for torch…
Browse files Browse the repository at this point in the history
… methods (#209)"

This reverts commit 3492c0e.
  • Loading branch information
robingenz committed Nov 24, 2024
1 parent 4dd341c commit 39e8dc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/barcode-scanning/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>;
/**
Expand All @@ -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<void>;
/**
Expand All @@ -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<void>;
/**
Expand All @@ -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<IsTorchEnabledResult>;
/**
Expand All @@ -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<IsTorchAvailableResult>;
/**
Expand Down

0 comments on commit 39e8dc9

Please sign in to comment.