nativescript-accelerometer
Advanced tools
Comparing version 2.0.0 to 2.0.1
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var accManager; | ||
var isListening = false; | ||
var main_queue = dispatch_get_current_queue(); | ||
function getNativeDelay(options) { | ||
@@ -31,6 +32,8 @@ if (!options || !options.sensorDelay) { | ||
accManager.startAccelerometerUpdatesToQueueWithHandler(queue, function (data, error) { | ||
wrappedCallback({ | ||
x: data.acceleration.x, | ||
y: data.acceleration.y, | ||
z: data.acceleration.z | ||
dispatch_async(main_queue, function () { | ||
wrappedCallback({ | ||
x: data.acceleration.x, | ||
y: data.acceleration.y, | ||
z: data.acceleration.z | ||
}); | ||
}); | ||
@@ -37,0 +40,0 @@ }); |
{ | ||
"name": "nativescript-accelerometer", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "NativeScript accelerometer plugin.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8691
162