setLocationLogging

abstract fun setLocationLogging(enable: Boolean)

Turns the live position on or off. When on, the SDK sends the device's live indoor position (property, building, floor, x/y, accuracy and time, with the SDK's user ID) to Mapsted analytics about every 5 seconds while positioning runs. It feeds the "Live" pages of the Mapsted Analytics dashboard.

ON by default. Call setLocationLogging(false) to turn it off; the setting is stored on the device and applies at once. Nothing is sent without the device's location permission (there is no position), and nothing is sent for a position your Mapsted licence does not allow.

This switch is separate from setAnalyticsCollectionMode.

Parameters

enable

true to send the live position (default), false to stop sending it