Enumeration

CLAuthorizationStatus

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

Declaration

enum CLAuthorizationStatus : Int32

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software