MCPcopy Index your code
hub / github.com/streamich/react-use / MotionSensorState

Interface MotionSensorState

src/useMotion.ts:4–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { off, on } from './misc/util';
3
4export interface MotionSensorState {
5 acceleration: {
6 x: number | null;
7 y: number | null;
8 z: number | null;
9 };
10 accelerationIncludingGravity: {
11 x: number | null;
12 y: number | null;
13 z: number | null;
14 };
15 rotationRate: {
16 alpha: number | null;
17 beta: number | null;
18 gamma: number | null;
19 };
20 interval: number | null;
21}
22
23const defaultState: MotionSensorState = {
24 acceleration: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…