Instance Property

monitoredRegions

The set of shared regions monitored by all location manager objects.

Declaration

@property(readonly, nonatomic, copy) NSSet<__kindof CLRegion *> *monitoredRegions;

Discussion

You cannot add regions to this property directly. Instead, you must register regions by calling the startMonitoringForRegion: method. The regions in this property are shared by all instances of the CLLocationManager class in your app.

The objects in this set may not necessarily be the same objects you specified at registration time. Only the region data itself is maintained by the system. Therefore, the only way to uniquely identify a registered region is using its identifier property.

The location manager persists region data between launches of your app. If your app is terminated and then relaunched, the contents of this property are repopulated with region objects that contain the previously registered data.

See Also

Initiating Region Monitoring

- startMonitoringForRegion:

Starts monitoring the specified region.

- stopMonitoringForRegion:

Stops monitoring the specified region.

maximumRegionMonitoringDistance

The largest boundary distance that can be assigned to a region.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software