Contents

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

Receiving region-related updates