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: any SITDirectionsInterface, didFailProcessingRequest request: SITDirectionsRequest, withError error: (any Error)?)Parameters
managerdirections provider (object that called this method).
requestthe SITDirectionsRequest that caused the error.
errorerror 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: any SITDirectionsInterface, didProcessRequest request: SITDirectionsRequest, withResponse route: SITRoute)Parameters
managerdirections provider (object that called this method).
requestthe SITDirectionsRequest that has been processed.
routeSITRoute that best match the request.