onCompassAccuracyChange

abstract fun onCompassAccuracyChange(compassStatus: Int)

This gets invoked when the compass accuracy status changes from one value to another. It provides an integer value which is identical to the SensorManager class constants:

Parameters

compassStatus

the new accuracy of this sensor, one of SensorManager.SENSOR_STATUS_*