PositionService

PositionService object.

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Datasource. Used to obtain data.

Link copied to clipboard

Get the current improved position. API user should check if the provided position is valid or not by using PositionData.isValid

Link copied to clipboard

Playback functionality

Link copied to clipboard

Get the latest position. User should check if the provided position is valid or not by using PositionData.isValid()

Link copied to clipboard

Data source type

Functions

Link copied to clipboard
fun addListener(listener: PositionListener, type: EDataType = EDataType.ImprovedPosition)

Register a new position listener for updates at the defined interval. The listener will be called with updated position at the defined interval. The listener also gets updates when the availability state of the position provider changes.

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard

Returns current position.

Link copied to clipboard

Returns current position.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun removeListener(listener: PositionListener)

Unregister a position listener.