SITLocationInterface

@protocol SITLocationInterface <NSObject>

General interface every object providing location should conform to.

  • Provides APIs for requesting users current location.

    Calling this method several times in a state different to kSITLocationStopped, would have different behaviours depending on the request being passed:

    If the request is equal to the previously provided wont do anything.

    If the request is different would cause a restart, stopping location updates and starting it again with the new request.

    Declaration

    Objective-C

    - (void)requestLocationUpdates:(SITLocationRequest *_Nonnull)request;

    Swift

    func requestLocationUpdates(_ request: SITLocationRequest)

    Parameters

    request

    SITLocationRequest object

  • State of the shared instance.

    Declaration

    Objective-C

    - (SITLocationState)state;

    Swift

    func state() -> SITLocationState

    Return Value

    SITLocationState value that indicates the actual state of the system

  • Stops the delivery of location updates.

    Note

    This method has no efect if the system is not running.

    Declaration

    Objective-C

    - (void)removeUpdates;

    Swift

    func removeUpdates()