Instance Method

startRangingBeaconsInRegion:

Starts the delivery of notifications for the specified beacon region.

Declaration

- (void)startRangingBeaconsInRegion:(CLBeaconRegion *)region;

Parameters

region

The region object that defines the identifying information for the targeted beacons. The number of beacons represented by this region object depends on which identifier values you use to initialize it. Beacons must match all of the identifiers you specify. This method copies the region information it needs from the object you provide.

Discussion

Once registered, the location manager reports any encountered beacons to its delegate by calling the locationManager:didRangeBeacons:inRegion: method. If there is an error registering the specified beacon region, the location manager calls its delegate’s locationManager:rangingBeaconsDidFailForRegion:withError: method and provides the appropriate error information.

See Also

Initiating Beacon Ranging Requests

stopRangingBeaconsInRegion:

Stops the delivery of notifications for the specified beacon region.

requestStateForRegion:

Retrieves the state of a region asynchronously.

rangedRegions

The set of regions currently being tracked using ranging.