CLAuthorizationStatus
public enum CLAuthorizationStatus : String, CustomDebugStringConvertible, CustomStringConvertible
The authorization status for the application, indicating whether it can use location services. Apple Documentation
-
The user has not yet made a choice regarding whether this app can use location services.
Declaration
Swift
case notDetermined = "Not Determined"
-
This app is not authorized to use location services. The user cannot change this app’s status, possibly due to active restrictions such as parental controls being in place.
Declaration
Swift
case restricted = "Restricted"
-
The user explicitly denied the use of location services for this app or location services are currently disabled in Settings.
Declaration
Swift
case denied = "Denied"
-
This app is authorized to use location services only while it is in the foreground.
Declaration
Swift
case authorizedWhenInUse = "Authorized When In Use"
-
This app is authorized to use location services at any time.
Declaration
Swift
case authorizedAlways = "Authorized Always"
-
A user-friendly description of the authorization status.
Declaration
Swift
public var description: String { get }
-
A debug-friendly description of the authorization status.
Declaration
Swift
public var debugDescription: String { get }