Advanced - Using a Device's Accelerometer in HTML Objects

This article describes how to access accelerometer data within a Mag+ HTML object. Accessing a device's accelerometer allows you to change content based on the device's position or movement.

Mag+ runs standard HTML code included in an HTML object placed on an InDesign layout. It's possible to interact with the accelerometer features of a device within a Mag+ app by using the appropriate function in Javascript.

The following links provide more information on how to use these functions.

Note: A developer account may be required to access some links. For more information on implementing these Javascript functions, try a Google search for "accessing accelerometer in iOS via javascript" or "accessing accelerometer in Android via javascript".
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk