nativescript-barcodescanner
Advanced tools
Comparing version 2.7.0 to 2.7.1
@@ -8,2 +8,3 @@ import { ScanOptions, ScanResult } from "./barcodescanner-common"; | ||
private _scanDelegate; | ||
private _closeCallback; | ||
constructor(); | ||
@@ -10,0 +11,0 @@ private _hasCameraPermission; |
@@ -69,2 +69,3 @@ "use strict"; | ||
BarcodeScanner.prototype.stop = function () { | ||
var _this = this; | ||
var self = this; | ||
@@ -76,2 +77,3 @@ return new Promise(function (resolve, reject) { | ||
self._removeVolumeObserver(); | ||
_this._closeCallback && _this._closeCallback(); | ||
resolve(); | ||
@@ -100,2 +102,3 @@ } | ||
var isContinuous_1 = typeof arg.continuousScanCallback === "function"; | ||
_this._closeCallback = arg.closeCallback; | ||
var types = []; | ||
@@ -153,3 +156,3 @@ if (arg.formats) { | ||
self._removeVolumeObserver(); | ||
arg.closeCallback && arg.closeCallback(); | ||
_this._closeCallback && _this._closeCallback(); | ||
reject("Scan aborted"); | ||
@@ -167,3 +170,3 @@ } | ||
self._removeVolumeObserver(); | ||
arg.closeCallback && arg.closeCallback(); | ||
_this._closeCallback && _this._closeCallback(); | ||
resolve(result); | ||
@@ -170,0 +173,0 @@ } |
{ | ||
"name": "nativescript-barcodescanner", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "Scan QR/barcodes with your NativeScript app.", | ||
@@ -74,2 +74,2 @@ "main": "barcodescanner", | ||
} | ||
} | ||
} |
@@ -52,3 +52,3 @@ # NativeScript BarcodeScanner | ||
<img src="ios_permission_custom_reason.png" width="271px" height="167px"/> | ||
<img src="docs/ios_permission_custom_reason.png" width="271px" height="167px"/> | ||
@@ -55,0 +55,0 @@ iOS 10+ requires not only this popup, but also a _reason_. In this case it's "We'd like to use the Camera ..". |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1662531
563
24