Instance Property

notifyOnExit

A Boolean indicating that notifications are generated upon exit from the region.

Declaration

var notifyOnExit: Bool { get set }

Discussion

When this property is true, a device crossing from inside the region to outside the region triggers the delivery of a notification. If the property is false, a notification is not generated. The default value of this property is true.

If the app is not running when a boundary crossing occurs, the system launches the app into the background to handle it. Upon launch, your app must configure new location manager and delegate objects to receive the notification. The notification is sent to your delegate’s locationManager(_:didExitRegion:) method.

See Also

Configuring Notification Delivery

var notifyOnEntry: Bool

A Boolean indicating that notifications are generated upon entry into the region.