API Reference

Learn more about the MotionStack APIs

MotionStack API Dependency Flowchart

The following diagram illustrates the flow of sensor data through MotionStack.

Adtile Sensor Dependency Graph

Instances of MotionStack APIs are reusable. You can create as many duplicate API instances as you may need within your project with no significant impact on site performance.

For instructions on how to incorporate sensor data into your own projects, check out the getting started page.

To familiarize yourself with some principles of motion computing, read the basics of motion computing section.

To reference some practical usage of MotionStack, browse the sample projects.

When motion events are not available on the device, MotionStack events are polyfilled with Touch events. The following chart describes which type of touch events are used to polyfill each MotionStack event.

MotionStack API Touch Polyfill
Accelerometer Pan
Compass Pan
Geolocation None
Gravity Pan
Gyroscope Pan
Magnetometer Pan
MotionMeter Press
Orientation Pan
Pedometer Swipe
RelativeAngle Pan
RelativeHeading Horizontal Pan
RelativePitch Vertical Pan
SensorControlSwitch None
Shake Swipe
ShakeProgress Swipe
Tilt Swipe
Trajectory Pan

MotionStack Sensor APIs

MotionStack Helper APIs

VideoStack Sensor APIs