Enumeration

CLAuthorizationStatus

Constants indicating whether the app is authorized to use location services.

Topics

Constants

case notDetermined

The user has not yet made a choice regarding whether this app can use location services.

case restricted

This app is not authorized to use location services.

case denied

The user explicitly denied the use of location services for this app or location services are currently disabled in Settings.

static var authorized: CLAuthorizationStatus

This app is authorized to use location services.

case authorizedAlways

This app is authorized to start location services at any time.

case authorizedWhenInUse

This app is authorized to start most location services while running in the foreground.

See Also

Requesting Authorization for Location Services

func requestWhenInUseAuthorization()

Requests permission to use location services while the app is in the foreground.

func requestAlwaysAuthorization()

Requests permission to use location services whenever the app is running.