-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAPI.Accelerometer.js
34 lines (28 loc) · 932 Bytes
/
API.Accelerometer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* Copyright (c) 2014 by Center Open Middleware. All Rights Reserved.
* Titanium Appcelerator 3.3.0GA
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
'use strict';
var Accelerometer = (function() {
/** It allows to listen accelerometer events.
* @author Carlos Blanco
* @version 1.0.0
* @alias API.Accelerometer
* @namespace */
var _self = {};
/** Changes on accelerometer can be captured using this event.
* @event AccelerometerChange
*/
_self.events = {
'accelerometerchange': {
event: 'update',
listener: 'accelerometer',
keylist: ['timestamp', 'x', 'y', 'z'],
source: 'Ti.Accelerometer'
}
};
return _self;
}());
module.exports = Accelerometer;