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

Compass

Head in the right direction!

Access to the compass heading information and the magnetometer data.

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

$10 (USD)
Discounted for subsequent years

Sign up now

Product Features

Native Compass
Provides access to native device compass sensor
Heading
Provides compass reading information, i.e. true / magnetic heading
Single API interface
Works across iOS and Android with the same code
Sample project code and ASDocs reference

Available in these packages

Master Collection

Enterprise Support

This extension gives access to two important sensor readings, the heading of the device and the magnetometer sensor data.

The Compass ANE is designed to give the magnetic-north heading values from the device calculated through a line from the bottom of the device to the top.

On iOS the location is used to calculate the offset from the magnetic heading to the true heading and both values are reported. (This may require the user to accept a permission for your application to access the device location).

The raw magnetic field values can be retrieved using this extension. You can listen for the MagneticFieldEvent for changes in the magnetic field. There are 2 important events, both indicating the magnetic field, one in the calibrated state and the other the raw uncalibrated data.

 

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.Compass) in the file to have your snippet listed here.

Stack Overflow

Make sure you tag your question with distriqt compass

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