public interface CompassListener
Modifier and Type | Method and Description |
---|---|
void |
onCompassAccuracyChange(int compassStatus)
This gets invoked when the compass accuracy status changes from one value to another.
|
void |
onCompassChanged(float userHeading)
Callback's invoked when a new compass update occurs.
|
void onCompassChanged(float userHeading)
CompassEngine.addCompassListener(CompassListener)
and implementing these
callbacks. Note that this interface is also used internally to to update the UI chevron/arrow.userHeading
- the new compass headingvoid onCompassAccuracyChange(int compassStatus)
SensorManager
class constants:
compassStatus
- the new accuracy of this sensor, one of
SensorManager.SENSOR_STATUS_*
© 2015–2019 Mapbox. All rights reserved.