CompassListener

Callbacks related to the compass

interface CompassListener

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
onCompassAccuracyChange
Link copied to clipboard
abstract fun onCompassAccuracyChange(compassStatus: Int)
onCompassChanged
Link copied to clipboard

Callback's invoked when a new compass update occurs. You can listen into the compass updates using CompassEngine.addCompassListener and implementing these callbacks. Note that this interface is also used internally to to update the UI chevron/arrow.

abstract fun onCompassChanged(userHeading: Float)
toString
Link copied to clipboard
open override fun toString(): String