airnativeextensions
  •  Extensions
    • All Extensions
    • Packages
    • Frameworks
    • Adobe AIR
    • Unity
    • Categories
    • Device Hardware
    • Free
    • Media
    • Native Services
    • Native UI Components
    • Open Source
    • SDKs
  • News
  • Showcase
  • Support
    • Documentation
    • Developer docs
    • Tutorials
    • FAQs
    • Contact
    • Contact Us
  • Login
Sign up now

Device Motion

Know how the device is oriented!

Calculates the current device orientation using the device motion sensors

Adobe AIR  Adobe AIR
iOS  v12.0+ Android  v19+ (32 + 64bit)

$35 (USD)
Discounted for subsequent years

Sign up now

Product Features

Orientation
Provides access to the orientation of the device in 3D space
Sensor Fusion
Uses sensor fusion algorithms to combine information from the accelerometer, magnetometer and gyroscope
Gimbal Lock
Algorithm attempts to avoid the Gimbal Lock via calculation
Advanced outputs
Choose between Quaternion, Euler, Rotation Matrix outputs
Single API
Works across iOS and Android with the same code
Sample project code and ASDocs reference

Available in these packages

Master Collection

Enterprise Support

Device motion is an extension that you can use for getting updates about the orientation of the device in 3D space.

The extension calculates and reports angles by use of various sensor fusion algorithms which combine the available sensors into orientation and rotational information. The quality of this information depends mainly on the hardware contained in the current device. Generally we require 3 sensors for these calculations: an accelerometer, a magnetometer and a gyroscope.

The extension works by registering for notifications of device motion. When you register for updates you specify a series of options about the updates which the extension use to determine the algorithm that is used to calculate the device orientation, and also the information format that is returned.

 

Documentation

The following resources are available for developers to guide them through the integration of the extension.

Development Guide

Our developer documentation contains a detailed guide on getting started with the extension. It also documents all of the major features showing you how to quickly and correctly integrate the extension in your application.

Reference

ASDocs document each of the classes, interfaces, events, functions and properties that you will be using. It is the main reference for the extension. If it's not in the guide you will find it here!

Change Log

This contains a record of all the changes we have done to the extension. There are more details in github, referenced with releases but this is publicly available to see the work being done on the extension.

Support

The following resources are for our subscribed users only. We use the issue tracker and wiki on GitHub to provide developer support, development tracking and the most detailed documentation on the usage of the extension.

GitHub Repository*

The GitHub repository gives subscribed users access to the extension, (including all past versions) and is the place to follow the development of the extension, request any features or improvements and to report any issues.

Issues on GitHub*

The issue tracker is the best place to get support. Ask our developers your questions directly! If you are having an issue implementing the extension or if you have found an issue, this is the place to ask!
*Subscribed users only

Community

Code samples

Post gists on GitHub and include the extension ID (com.distriqt.DeviceMotion) in the file to have your snippet listed here.

Stack Overflow

Make sure you tag your question with distriqt devicemotion

Starling Forum

We regularly monitor the Starling forum and many of our users are active there so feel free to ask your questions there.

Quick Examples

 

Reviews

airnativeextensions.com copyright © 2017

distriqt

terms & conditions privacy license