TTBatchSearchDelegate
@protocol TTBatchSearchDelegate <NSObject>
TTBatchSearchDelegate
-
Method responsible to handle batch search response when batch returns results. Within this callback user will obtain Response that can be visited by corresponding responses.
Declaration
Objective-C
- (void)batch:(TTBatchSearch *_Nonnull)batch completedWithResponse:(TTBatchResponse *_Nonnull)response;Swift
optional func batch(_ batch: TTBatchSearch, completedWith response: TTBatchResponse)Parameters
batchTTBatchSearch
responseTTBatchResponse
-
Method responsible to handle batch search response when search returns error. Within this callback user will obtain Throwable fail reason
Declaration
Objective-C
- (void)batch:(TTBatchSearch *_Nonnull)batch failedWithError:(TTResponseError *_Nonnull)error;Swift
optional func batch(_ batch: TTBatchSearch, failedWithError error: TTResponseError)Parameters
batchTTBatchSearch
errorTTResponseError
TTBatchSearchDelegate Protocol Reference