public final class CLAuthorizationStatus
extends java.lang.Object
Discussion: Represents the current authorization state of the application.
| Modifier and Type | Field and Description |
|---|---|
static int |
Authorized
Deprecated.
|
static int |
AuthorizedAlways
User has granted authorization to use their location at any
time.
|
static int |
AuthorizedWhenInUse
User has granted authorization to use their location only while
they are using your app.
|
static int |
Denied
User has explicitly denied authorization for this application, or
location services are disabled in Settings.
|
static int |
NotDetermined
User has not yet made a choice with regards to this application
|
static int |
Restricted
This application is not authorized to use location services.
|
public static final int NotDetermined
public static final int Restricted
public static final int Denied
public static final int AuthorizedAlways
This value should be used on iOS, tvOS and watchOS. It is available on MacOS, but kCLAuthorizationStatusAuthorized is synonymous and preferred.
public static final int AuthorizedWhenInUse
This value is not available on MacOS. It should be used on iOS, tvOS and watchOS.
@Deprecated public static final int Authorized
This value is deprecated or prohibited on iOS, tvOS and watchOS. It should be used on MacOS.