Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CoreLocation.RegionMonitoringEnabled

Whether region monitoring is currently enabled.

Component Version macOS Windows Linux Server iOS SDK
CoreLocation 9.1 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "CoreLocation.RegionMonitoringEnabled" )

Parameters

none

Result

Returns 1, 0 or error.

Description

Whether region monitoring is currently 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 regionMonitoringAvailable() class method before attempting to start region monitoring services.

See also

This function checks for a license.

Created 17th February 2019, last changed 17th February 2019


CoreLocation.RegionMonitoringAvailable - CoreLocation.SetFailEvaluate