CLLocationManagerDelegate protocol defines the methods used to receive location and heading updates from a
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
Upon receiving a successful location or heading update, you can use the result to update your user interface or perform other actions. If the location or heading could not be determined, you might want to stop updates for a short period of time and try again later. You can use the
stopMonitoringVisits() methods of
CLLocationManager to stop the various location services.
The methods of your delegate object are called from the thread in which you started the corresponding location services. That thread must itself have an active run loop, like the one found in your application’s main thread.