Skip to main content
Use this API to register listeners that monitor compass data updates.

Parameters

Callback Parameters

Code Example

Basic Usage

Compass Display

Call my.startCompass before using this API to begin receiving compass data.

my.offCompassChange

Stop listening for changes

my.startCompass

Start compass