Skip to Content
API ReferenceLocationCompassDataSource

CompassDataSource

open class CompassDataSource(context: Context, minimum_difference_for_update: Int = 5)

This class expose a flow that emits when new heading of the device is found

This could be used to be combined with the locations flow or routing flow directly.

See also

RoutingStatusRepositoryUnderstand that there are to references to angles of the compass. The ‘raw compass angle’, ‘cartesian compass angle’ and ‘northEast compass angle’.
The raw compass angle: 0 ^ -45

Constructors

CompassDataSourceconstructor(context: Context , minimum_difference_for_update: Int  = 5)

Types

NameSummary
Companionobject Companion

Properties

compassSource

open val compassSource: Flow<Double>

This flow expose the heading of the device. In range 0,360

Last updated on