TTSearchDelegate
Objective-C
@protocol TTSearchDelegate <NSObject>
Swift
protocol TTSearchDelegate : NSObjectProtocol
TTSearchDelegate
-
Method responsible to handle search response when search returns response. Within this callback the user will obtain a response populated with results.
Declaration
Objective-C
- (void)search:(TTSearch *_Nonnull)search completedWithResponse:(TTSearchResponse *_Nonnull)response;Swift
optional func search(_ search: TTSearch, completedWith response: TTSearchResponse)Parameters
searchObject type TTSearch.
responseObject type TTSearchResponse.
-
Method responsible to handle search response when search returns error. Within this callback user will obtain Throwable fail reason
Declaration
Objective-C
- (void)search:(TTSearch *_Nonnull)search failedWithError:(TTResponseError *_Nonnull)error;Swift
optional func search(_ search: TTSearch, failedWithError error: TTResponseError)Parameters
searchObject type TTSearch.
errorObject type TTResponseError.
TTSearchDelegate Protocol Reference