/
DeviceMotion.d.ts
46 lines (46 loc) · 1.07 KB
/
DeviceMotion.d.ts
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
35
36
37
38
39
40
41
42
43
44
45
46
import DeviceSensor from './DeviceSensor';
export interface DeviceMotionMeasurement {
acceleration: null | {
x: number;
y: number;
z: number;
};
accelerationIncludingGravity: {
x: number;
y: number;
z: number;
};
rotation: {
alpha: number;
beta: number;
gamma: number;
};
/**
* Device's rate of rotation in space expressed in degrees per second (deg/s).
*/
rotationRate: null | {
/**
* x axis rotation.
*/
alpha: number;
/**
* y axis rotation.
*/
beta: number;
/**
* z axis rotation.
*/
gamma: number;
};
/**
* Interval at which data is obtained from the native platform. Expressed in **milliseconds**.
*/
interval: number;
orientation: number;
}
declare class DeviceMotionSensor extends DeviceSensor<DeviceMotionMeasurement> {
Gravity: any;
}
export declare const Gravity: any;
declare const _default: DeviceMotionSensor;
export default _default;