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".

0 Comments

Article is closed for comments.
Powered by Zendesk