CLAuthorizationStatus Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An enumeration whose values specify the current status of authorization to use location services.
public enum CLAuthorizationStatus
type CLAuthorizationStatus =
- Inheritance
-
CLAuthorizationStatus
Fields
Name | Value | Description |
---|---|---|
NotDetermined | 0 | The user has not yet chosen whether to allow location services. |
Restricted | 1 | Location services are not available and the user cannot change the authorization (e.g., constrained by parental controls). |
Denied | 2 | The app is not allowed to use location services. |
Authorized | 3 | Developers should not use this deprecated field. Developers should use 'AuthorizedAlways' instead. |
AuthorizedAlways | 3 | |
AuthorizedWhenInUse | 4 |