The object that you use to start and stop the delivery of location-related events to your app.
- iOS 2.0+
- macOS 10.6+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Location
You use instances of this class to configure, start, and stop the Core Location services. A location manager object supports the following location-related activities:
Tracking large or small changes in the user’s current location with a configurable degree of accuracy.
Reporting heading changes from the onboard compass.
Monitoring distinct regions of interest and generating location events when the user enters or leaves those regions.
Reporting the range to nearby beacons.
Assign a custom object to the
delegate property, conforming to the
CLLocation protocol. Assign the delegate before starting any location services. The system calls the delegate's
location method immediately when the location manager is created. All location and heading-related updates and events are delivered to that delegate.
See Adding Location Services to Your App for more information.