SITLocationDelegate

@protocol SITLocationDelegate <NSObject>

Delegate for SITLocationManager. Use this to listen for location related callbacks.

  • Called when user’s location changes.

    Declaration

    Objective-C

    - (void)locationManager:(id<SITLocationInterface> _Nonnull)locationManager
          didUpdateLocation:(SITLocation *_Nonnull)location;

    Parameters

    locationManager

    location provider

    location

    current location

  • Called when an error is encountered.

    Note

    Invoked when an error has occurred. Error types are defined in SITLocationError.h.

    Declaration

    Objective-C

    - (void)locationManager:(id<SITLocationInterface> _Nonnull)locationManager
           didFailWithError:(NSError *_Nullable)error;

    Parameters

    locationManager

    location provider

    error

    error description

  • Called when the system changes it’s internal state

    Declaration

    Objective-C

    - (void)locationManager:(id<SITLocationInterface> _Nonnull)locationManager
             didUpdateState:(SITLocationState)state;

    Parameters

    locationManager

    location provider

    state

    state of the system (one of SITLocationState enum values)