PWMSELocationManagerDelegate Protocol Reference
Conforms to | PWLocationManagerDelegate |
---|---|
Declared in | PWMSELocationManager.h |
Overview
The PWMSELocationManagerDelegate
protocol defines the methods used to receive location updates from a PWMSELocationManager
object. This class conforms to the PWLocationManagerDelegate
protocol.
The methods of your delegate object are called from the main application thread.
– locationManager:didUpdateToLocation:
required method
Tells the delegate that a new location update is available.
- (void)locationManager:(id<PWLocationManager>)manager didUpdateToLocation:(id<PWLocation>)location
Parameters
manager |
The location manager object that generated the update event. |
---|---|
location |
A location object with the updated location information. This object conforms to the |
Discussion
Implementation of this method is optional but recommended.
Declared In
PWMSELocationManager.h
– locationManager:failedWithError:
required method
Tells the delegate that the location manager was unable to retrieve a location value.
- (void)locationManager:(PWMSELocationManager *)manager failedWithError:(NSError *)error
Parameters
manager |
The location manager object that was unable to retrieve the location. |
---|---|
error |
The error object containing the reason the location could not be retrieved. |
Discussion
Implementation of this method is optional but recommended.
The location manager calls this method when it encounters an error trying to get the location data. If an error is encountered, the location manager will keep attempting to update until stopUpdatingLocation
is called.
Declared In
PWMSELocationManager.h