Use this API to stop listening for compass heading changes that were registered with my.onCompassChange().
Parameters
Code Example
Remove Specific Listener
Remove All Listeners
Toggle Compass
Pass the same callback function reference to my.offCompassChange() that was used with my.onCompassChange() to remove only that specific listener.
my.onCompassChange
Listen for compass changes
my.startCompass
Start compass