CBAuthorizationStatus Constants Reference
Declared in | CBConstant.h |
---|---|
References | CBBeaconManager.-requestWhenInUseAuthorization CBBeaconManager.-requestAlwaysAuthorization |
CBAuthorizationStatus
CBAuthorizationStatus
enum represents the current authorization state of the application.
Definition
typedef NS_ENUM(uint8_t, CBAuthorizationStatus ) {
CBAuthorizationStatusNotDetermined = 0,
CBAuthorizationStatusRestricted,
CBAuthorizationStatusDenied,
CBAuthorizationStatusAuthorizedAlways,
CBAuthorizationStatusAuthorizedWhenInUse,
};
Constants
CBAuthorizationStatusNotDetermined
-
User has not yet made a choice with regards to this application
Declared In
CBConstant.h
. CBAuthorizationStatusRestricted
-
This application is not authorized to use location services. Due to active restrictions on location services, the user cannot change this status, and may not have personally denied authorization
Declared In
CBConstant.h
. CBAuthorizationStatusDenied
-
User has explicitly denied authorization for this application, or location services are disabled in Settings.
Declared In
CBConstant.h
. CBAuthorizationStatusAuthorizedAlways
-
User has granted authorization to use their location at any time, including monitoring for regions, visits, or significant location changes.
Declared In
CBConstant.h
. CBAuthorizationStatusAuthorizedWhenInUse
-
User has granted authorization to use their location only when your app is visible to them (it will be made visible to them if you continue to receive location updates while in the background). Authorization to use launch APIs has not been granted.
Declared In
CBConstant.h
.
See Also
CBBeaconManager.-requestWhenInUseAuthorization
CBBeaconManager.-requestAlwaysAuthorization
Declared In
CBConstant.h