]>
git.proxmox.com Git - extjs.git/blob - extjs/packages/legacy/modern/src/device/accelerometer/Abstract.js
4 Ext
.define('Ext.device.accelerometer.Abstract', {
7 * @cfg {Number} frequency The default frequency to get the current acceleration when using {@link Ext.device.Accelerometer#watchAcceleration}.
12 getCurrentAcceleration: function(config
) {
14 if (!config
.success
) {
15 Ext
.Logger
.warn('You need to specify a `success` function for #getCurrentAcceleration');
22 watchAcceleration: function(config
) {
23 var defaultConfig
= Ext
.device
.accelerometer
.Abstract
.prototype.config
;
25 config
= Ext
.applyIf(config
, {
26 frequency
: defaultConfig
.frequency
30 if (!config
.callback
) {
31 Ext
.Logger
.warn('You need to specify a `callback` function for #watchAcceleration');
38 clearWatch
: Ext
.emptyFn