Instance Method

requestState(for:)

Retrieves the state of a region asynchronously.

Declaration

func requestState(for region: CLRegion)

Parameters

region

The region whose state you want to know. This object must be an instance of one of the standard region subclasses provided by Map Kit. You cannot use this method to determine the state of custom regions you define yourself.

Discussion

This method performs the request asynchronously and delivers the results to the location manager’s delegate. You must implement the locationManager(_:didDetermineState:for:) method in the delegate to receive the results.

If the region parameter contains an unknown type of region object, this method does nothing.

See Also

Initiating Beacon Ranging Requests

func startRangingBeacons(in: CLBeaconRegion)

Starts the delivery of notifications for the specified beacon region.

func stopRangingBeacons(in: CLBeaconRegion)

Stops the delivery of notifications for the specified beacon region.

var rangedRegions: Set<CLRegion>

The set of regions currently being tracked using ranging.