com.craftar
Interface CraftARSearchResponseHandler
public interface CraftARSearchResponseHandler
Interface to receive the search responses from anImageRecognition
class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
searchFailed(CraftARError error, int requestCode)
Callback triggered when a search request could not be completedvoid
searchResults(java.util.ArrayList<CraftARResult> results, long searchTimeMillis, int requestCode)
Callback with the results of an image recognition search.
-
-
-
Method Detail
-
searchResults
void searchResults(java.util.ArrayList<CraftARResult> results, long searchTimeMillis, int requestCode)
Callback with the results of an image recognition search.- Parameters:
results
- List of matches for the given query,searchTimeMillis
- Time to process this request.requestCode
- Code passed toImageRecognition.search(CraftARQueryImage,int)
or -1 if no requestCode was passed.
-
searchFailed
void searchFailed(CraftARError error, int requestCode)
Callback triggered when a search request could not be completed- Parameters:
error
- List of matches for the given query,requestCode
- Code passed toImageRecognition.search(CraftARQueryImage, int)
or -1 if no requestCode was passed.
-
-