package com.mapbox.mapboxsdk.location; /** * Callbacks related to the compass */ public interface CompassListener { /** * Callback's invoked when a new compass update occurs. You can listen into the compass updates * using {@link CompassEngine#addCompassListener(CompassListener)} and implementing these * callbacks. Note that this interface is also used internally to to update the UI chevron/arrow. * * @param userHeading the new compass heading */ void onCompassChanged(float userHeading); /** * This gets invoked when the compass accuracy status changes from one value to another. It * provides an integer value which is identical to the {@code SensorManager} class constants: * * * @param compassStatus the new accuracy of this sensor, one of * {@code SensorManager.SENSOR_STATUS_*} */ void onCompassAccuracyChange(int compassStatus); }