CompassEngine

Interface defining the source of compass heading data that is consumed by the LocationPluginImpl when in compass related RenderMode or CameraMode s.

interface CompassEngine

Functions

addCompassListener
Link copied to clipboard

Adds a CompassListener that can be used to receive heading and state changes.

abstract fun addCompassListener(compassListener: CompassListener)
getLastAccuracySensorStatus
Link copied to clipboard

Provides the last know accuracy status from the sensor manager.

An integer value which is identical to the {@code SensorManager} class constants:

abstract fun getLastAccuracySensorStatus(): Int
getLastHeading
Link copied to clipboard

Returns the last heading value produced and pushed via a compass listener.

abstract fun getLastHeading(): Float
removeCompassListener
Link copied to clipboard

Removes a CompassListener that can be used to receive heading and state changes.

abstract fun removeCompassListener(compassListener: CompassListener)

Inheritors

LocationComponentCompassEngine
Link copied to clipboard