From e9028560899899bde1ec0d49839d4f16fcb7ffa9 Mon Sep 17 00:00:00 2001 From: Abdelaziz Bennouna Date: Wed, 11 Jan 2017 16:31:29 +0000 Subject: [PATCH] feat(barcodescanner): add missing options (#966) Fixes #965 --- src/plugins/barcodescanner.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/plugins/barcodescanner.ts b/src/plugins/barcodescanner.ts index af769e31..67b00df3 100644 --- a/src/plugins/barcodescanner.ts +++ b/src/plugins/barcodescanner.ts @@ -37,6 +37,16 @@ export interface BarcodeScannerOptions { */ orientation?: string; + /** + * Launch with the torch switched on (if available). Supported on Android only. + */ + torchOn?: boolean; + + /** + * Display scanned text for X ms. 0 suppresses it entirely, default 1500. Supported on Android only. + */ + resultDisplayDuration?: number; + } /**