Accelerometer

by Alexander Vakrilov

NativeScript accelerometer plugin.

NativeScript Accelerometer Plugin

Accelerometer plugin for NativeScript

Installation

tns plugin add nativescript-accelerometer

Usage

var accelerometer = require("nativescript-accelerometer");

accelerometer.startAccelerometerUpdates(function(data) {
    console.log("x: " + data.x + "y: " + data.y + "z: " + data.z);
});
STATS

41 downloads in the last month

5 downloads in the last week

0 downloads in the last day