Skip to content

LocationSettings options

mehdi sohrabi edited this page Apr 11, 2020 · 2 revisions

LocationSettings options:

accuracy: Accuracy of location, default : LocationAccuracy.NAVIGATION

  • LocationAccuracy.NAVIGATION
  • LocationAccuracy.HIGH
  • LocationAccuracy.BALANCED
  • LocationAccuracy.POWERSAVE
  • LocationAccuracy.LOW

interval: Interval of request the service make in second only for Android, default : 5

distanceFilter: Distance in meter to trigger the callback, Default : 0

notificationTitle: Title of the notification only for Android, default : 'Start Location Tracking'

notificationMsg: Message of the notification, only for Android default : 'Track location in background'

notificationIcon: Image of the notification, only for Android, the icon should be in 'mipmap' directory. Default : App icon

wakeLockTime: Timeout in minutes for the service, only for Android, default : 60

autoStop: If true the service will stop as soon as app goes to background

[Stop on app terminate] (https://github.com/rekab-app/background_locator/wiki/Stop-on-app-terminate)