Returns a Boolean value indicating whether region monitoring is currently enabled.
- iOS 4.0–6.0Deprecated
- macOS 10.8–10.10Deprecated
- Core Location
true if region monitoring is available and is currently enabled;
false if it is unavailable or not enabled.
In iOS, the user can enable or disable location services (including region monitoring) using the controls in Settings > Location Services.
You should check the return value of this method before starting region monitoring updates to determine whether the user currently allows location services to be used at all. If this method returns
false and you start region monitoring updates anyway, the Core Location framework prompts the user to confirm asking whether location services should be reenabled.
This method does not check to see if region monitoring capabilities are actually supported by the device. Therefore, you should also check the return value of the
region class method before attempting to start region monitoring services.