Instance Method


Starts the delivery of visit-related events.


func startMonitoringVisits()


Calling this method begins the delivery of visit-related events to your app. Enabling visit events for one location manager enables visit events for all other location manager objects in your app. When a new visit event arrives, the location manager object delivers the event to the locationManager(_:didVisit:) method of its delegate.

If your app is terminated while this service is active, the system relaunches your app when new visit events are ready to be delivered. Upon relaunch, recreate your location manager object and assign a delegate to begin receiving visit events. You do not need to call this method again to restart the delivery of visit events but calling it does no harm.

See Also

Initiating Visit Event Updates

func stopMonitoringVisits()

Stops the delivery of visit-related events.