The object that you use to start and stop the delivery of location-related events to your app.
SDKs
- iOS 2.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Location
Declaration
class CLLocationManager : NSObject
Overview
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.