CompassEngine

interface CompassEngine

Interface defining the source of compass heading data that is consumed by the LocationComponent when in compass related RenderMode or CameraModes.

Functions

Link copied to clipboard
abstract fun addCompassListener(@NonNull compassListener: CompassListener)
Adds a CompassListener that can be used to receive heading and state changes.
Link copied to clipboard
Provides the last know accuracy status from the sensor manager.
Link copied to clipboard
abstract fun getLastHeading(): Float
Returns the last heading value produced and pushed via a compass listener.
Link copied to clipboard
abstract fun removeCompassListener(@NonNull compassListener: CompassListener)
Removes a CompassListener that can be used to receive heading and state changes.