SITLocationDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SITLocationInterface.h |
– locationManager:didUpdateLocation:
required method
Called when user’s location changes.
- (void)locationManager:(nonnull id<SITLocationInterface>)locationManager didUpdateLocation:(nonnull SITLocation *)location
Parameters
locationManager |
location provider |
---|---|
location |
current location |
Declared In
SITLocationInterface.h
– locationManager:didFailWithError:
required method
Called when an error is encountered.
- (void)locationManager:(nonnull id<SITLocationInterface>)locationManager didFailWithError:(nonnull NSError *)error
Parameters
locationManager |
location provider |
---|---|
error |
error description |
Discussion
Invoked when an error has occurred. Error types are defined in “SITLocationError.h”.
Declared In
SITLocationInterface.h
– locationManager:didUpdateState:
required method
Called when the system changes it’s internal state
- (void)locationManager:(nonnull id<SITLocationInterface>)locationManager didUpdateState:(SITLocationState)state
Parameters
locationManager |
location provider |
---|---|
state |
state of the system (one of SITLocationState enum values) |
Declared In
SITLocationInterface.h