Type Method

authorizationStatus()

Returns the app’s authorization status for using location services.

Declaration

class func authorizationStatus() -> CLAuthorizationStatus

Return Value

A value indicating whether the app is authorized to use location services.

Discussion

The authorization status of a given app is managed by the system and determined by several factors. Apps must be explicitly authorized to use location services by the user and location services must themselves currently be enabled for the system. A request for user authorization is displayed automatically when your app first attempts to use location services.