Friday, April 19, 2024
HomeiOS Developmentios - Dynamically altering locationManager (CoreLocation) settings after initialisation

ios – Dynamically altering locationManager (CoreLocation) settings after initialisation


I’m presently constructing a monitoring utility. I wish to know if the settings of the locationManager will be dynamically modified. I couldn’t discover a comparable stack overflow query, nor a helpful piece of documentation.

Ought to I do that:

locationManager.distanceFilter = newDistanceFilter
locationManager.desiredAccuracy = newDesiredAccuracy

Or this:

locationManager.stopUpdatingLocation()
locationManager.distanceFilter = newDistanceFilter
locationManager.desiredAccuracy = newDesiredAccuracy
locationManager.startUpdatingLocation()

That’s, ought to the situation service be restarted with the brand new settings, or we are able to simply change the settings and the situation supervisor will mechanically use them?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments