setAnalyticsCollectionMode

abstract fun setAnalyticsCollectionMode(collectionMode: Int)

Set up the analytics mode. It is stored on the device and applies at once, without restarting the app.

  • ANALYTICS_ON (the default): analytics packages (positioning analytics, app-usage analytics and the session package) are uploaded to Mapsted on any network.
  • ANALYTICS_WIFI_ONLY: prefers Wi-Fi. They are kept on the device and uploaded when the device is on Wi-Fi (or another unmetered, non-cellular network); they are sent on mobile data after 30 minutes if no Wi-Fi is available.
  • ANALYTICS_OFF: they are not kept or uploaded, and any still waiting on the device are deleted unsent.

This mode does not cover the live position, which has its own switch: setLocationLogging. Calibration walks and data captures recorded with a Mapsted calibration app are never affected.

Parameters

collectionMode

The analytics mode you want to set.