Instance Method

locationManager(_:rangingBeaconsDidFailFor:withError:)

Tells the delegate that an error occurred while gathering ranging information for a set of beacons.

Declaration

optional func locationManager(_ manager: CLLocationManager, rangingBeaconsDidFailFor region: CLBeaconRegion, withError error: Error)

Parameters

manager

The location manager object reporting the event.

region

The region object that encountered the error.

error

An error object containing the error code that indicates why ranging failed.

Discussion

Errors occur most often when registering a beacon region failed. If the region object itself is invalid or if it contains invalid data, the location manager calls this method to report the problem.

See Also

Responding to Ranging Events

func locationManager(CLLocationManager, didRange: [CLBeacon], satisfying: CLBeaconIdentityConstraint)

Tells the delegate that a beacon satisfying the constraint was detected.

func locationManager(CLLocationManager, didFailRangingFor: CLBeaconIdentityConstraint, error: Error)

Tells the delegate that no beacons were detected that satisfy the constraint.

func locationManager(CLLocationManager, didRangeBeacons: [CLBeacon], in: CLBeaconRegion)

Tells the delegate that one or more beacons are in range.

Deprecated