public interface CompletionHandler
Modifier and Type | Method and Description |
---|---|
void |
requestCompleted(JSONObject content,
AlgoliaException error)
Called when the request has completed, either successfully or failing.
|
void requestCompleted(JSONObject content, AlgoliaException error)
NOTE: One and only one of either content
or error
is guaranteed to be not null.
content
- Content that was returned by the API (in case of success).error
- Error that was encountered (in case of failure).