API: Detect Accelerometer Motion

This sample code allows you to detect if the device is in motion via the device's accelerometer.

Requires

Reference

View API Documentation View API Best Practices

Sample Code

Trigger via API Function Notification via API Callback
Start Listening for Accelerometer Motion
Stop Listening for Accelerometer Motion
Currently Listening
-
Previously Listening
-
Last Updated
-
Check Current State
Currently Listening
-
Motion Session Currently Active
-
Time Remaining in Current Session Unless Reset by New Motion (seconds)
-
Last Updated
-
Motion detection callbacks are triggered automatically by the app once listening is started (see above) and device motion is detected based on tilt & orientation of the device. Session length is determined by the 'Motion Detection Reset Period' configured in the app's settings.

Clear Motion Log