Enumeration Case

CLAuthorizationStatus.notDetermined

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

Declaration

case notDetermined = 0

Discussion

When the authorization status is Not Determined, request authorization causes the location manager to prompt the user for permission if the app is in the foreground. See requestWhenInUseAuthorization() and requestAlwaysAuthorization() for more information.

See Also

Authorization Status

case restricted

The app is not authorized to use location services.

case denied

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

static var authorized: CLAuthorizationStatus

The user authorized the app to use location services.

case authorizedAlways

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

case authorizedWhenInUse

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