SITDirectionsDelegate
Objective-C
@protocol SITDirectionsDelegate <NSObject>
Swift
protocol SITDirectionsDelegate : NSObjectProtocol
Delegate for SITDirectionsManager. Use this to listen for directions related callbacks.
-
Called when an error is encountered.
Declaration
Objective-C
- (void)directionsManager:(id<SITDirectionsInterface> _Nonnull)manager didFailProcessingRequest:(SITDirectionsRequest *_Nonnull)request withError:(NSError *_Nullable)error;
Swift
func directionsManager(_ manager: SITDirectionsInterface, didFailProcessingRequest request: SITDirectionsRequest, withError error: Error?)
Parameters
manager
directions provider (object that called this method).
request
the SITDirectionsRequest that caused the error.
error
error that describes the problem.
-
Called when a SITDirectionsRequest is being processed.
Declaration
Objective-C
- (void)directionsManager:(id<SITDirectionsInterface> _Nonnull)manager didProcessRequest:(SITDirectionsRequest *_Nonnull)request withResponse:(SITRoute *_Nonnull)route;
Swift
func directionsManager(_ manager: SITDirectionsInterface, didProcessRequest request: SITDirectionsRequest, withResponse route: SITRoute)
Parameters
manager
directions provider (object that called this method).
request
the SITDirectionsRequest that has been processed.
route
SITRoute that best match the request.