SITNavigationInterface

Objective-C

@protocol SITNavigationInterface <NSObject>

Swift

protocol SITNavigationInterface : NSObjectProtocol

Interface that every object that provides navigation must implement.

  • Set the navigation parameters to receive navigation updates.

    Declaration

    Objective-C

    - (void)requestNavigationUpdates:(SITNavigationRequest *_Nonnull)request;

    Swift

    func requestNavigationUpdates(_ request: SITNavigationRequest)

    Parameters

    request

    SITNavigationRequest object.

  • Update the current location to compute the progress of a user with respect to a route.

    Declaration

    Objective-C

    - (void)updateWithLocation:(SITLocation *_Nonnull)location;

    Swift

    func update(with location: SITLocation)

    Parameters

    location

    current location. You should introduced the locations provided by the SITLocationManager through its delegate interface.

  • Stops providing navigation updates and deletes

    Declaration

    Objective-C

    - (void)removeUpdates;

    Swift

    func removeUpdates()
  • Check if navigation manager is locaded with a valid request

    Declaration

    Objective-C

    - (BOOL)isRunning;

    Swift

    func isRunning() -> Bool

    Return Value

    boolean value that determines if the SITNavigationManager is loaded with a valid request (YES) or not (NO)