Returns the app’s authorization status for using location services.
- iOS 4.2+
- macOS 10.7+
- tvOS 9.0+
- watchOS 2.0+
- Core Location
A value indicating whether the app is authorized to use location services.
The authorization status of a given app is managed by the system and determined by several factors. Apps must be explicitly authorized to use location services by the user and location services must themselves currently be enabled for the system. A request for user authorization is displayed automatically when your app first attempts to use location services.