Enumeration Case

kCLAuthorizationStatusAuthorizedWhenInUse

The user authorized the app to start location services while it is in use.

Declaration

kCLAuthorizationStatusAuthorizedWhenInUse

Discussion

This authorization allows you to use all location services and receive location events only when your app is in use. To continue using location services in the background, enable Continuous Background Location Updates and start the services while the app is in use.

See Also

Authorization Status

kCLAuthorizationStatusNotDetermined

The user has not chosen whether the app can use location services.

kCLAuthorizationStatusRestricted

The app is not authorized to use location services.

kCLAuthorizationStatusDenied

The user denied the use of location services for the app or they are disabled globally in Settings.

kCLAuthorizationStatusAuthorized

The user authorized the app to use location services.

kCLAuthorizationStatusAuthorizedAlways

The user authorized the app to start location services at any time.