Instance Method

locationManager(_:didDetermineState:for:)

Tells the delegate about the state of the specified region.

Declaration

optional func locationManager(_ manager: CLLocationManager, didDetermineState state: CLRegionState, for region: CLRegion)

Parameters

manager

The location manager object reporting the event.

state

The state of the specified region. For a list of possible values, see the CLRegionState type.

region

The region whose state was determined.

Discussion

The location manager calls this method whenever there is a boundary transition for a region. It calls this method in addition to calling the locationManager(_:didEnterRegion:) and locationManager(_:didExitRegion:) methods. The location manager also calls this method in response to a call to its requestState(for:) method, which runs asynchronously.

See Also

Responding to Region Events

func locationManager(CLLocationManager, didEnterRegion: CLRegion)

Tells the delegate that the user entered the specified region.

func locationManager(CLLocationManager, didExitRegion: CLRegion)

Tells the delegate that the user left the specified region.

func locationManager(CLLocationManager, didStartMonitoringFor: CLRegion)

Tells the delegate that a new region is being monitored.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software