Instance Method

locationManager:didDetermineState:forRegion:

Tells the delegate about the state of the specified region.

Declaration

- (void)locationManager:(CLLocationManager *)manager didDetermineState:(CLRegionState)state forRegion:(CLRegion *)region;

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 requestStateForRegion: method, which runs asynchronously.

See Also

Responding to Region Events

- locationManager:didEnterRegion:

Tells the delegate that the user entered the specified region.

- locationManager:didExitRegion:

Tells the delegate that the user left the specified region.

- locationManager:monitoringDidFailForRegion:withError:

Tells the delegate that a region monitoring error occurred.

- locationManager:didStartMonitoringForRegion:

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