TTAlongRouteSearchDelegate
Objective-C
@protocol TTAlongRouteSearchDelegate <NSObject>
Swift
protocol TTAlongRouteSearchDelegate : NSObjectProtocol
TTAlongRouteSearchDelegate
-
Method responsible to handle along route search response when search returns results. Within this callback the user will obtain a response populated with results.
Declaration
Objective-C
- (void)search:(TTAlongRouteSearch *_Nonnull)search completedWithResponse:(TTAlongRouteSearchResponse *_Nonnull)response;
Swift
optional func search(_ search: TTAlongRouteSearch, completedWith response: TTAlongRouteSearchResponse)
Parameters
search
Object type TTAlongRouteSearch.
response
Object type TTAlongRouteSearchResponse.
-
Method responsible to handle along route search response when search returns error. Within this callback the user will obtain a Throwable fail reason.
Declaration
Objective-C
- (void)search:(TTAlongRouteSearch *_Nonnull)search failedWithError:(TTResponseError *_Nonnull)error;
Swift
optional func search(_ search: TTAlongRouteSearch, failedWithError error: TTResponseError)
Parameters
search
object type TTAlongRouteSearch.
error
object type TTResponseError.