Package com.pspdfkit.document.library
Interface QueryResultListener
-
- All Implemented Interfaces:
public interface QueryResultListener
Listener for document search query.
-
-
Method Summary
Modifier and Type Method Description abstract void
onSearchCompleted(@NonNull() String searchString, @NonNull() Map<String, Set<Integer>> results)
Called when search completes before previews are generated. abstract void
onSearchPreviewsGenerated(@NonNull() String searchString, @NonNull() Map<String, Set<QueryPreviewResult>> results)
Called when search previews are generated (of shouldGenerateTextPreviews was true
).-
-
Method Detail
-
onSearchCompleted
abstract void onSearchCompleted(@NonNull() String searchString, @NonNull() Map<String, Set<Integer>> results)
Called when search completes before previews are generated.
- Parameters:
searchString
- Search query passed into the search method.results
- Map of results.
-
onSearchPreviewsGenerated
abstract void onSearchPreviewsGenerated(@NonNull() String searchString, @NonNull() Map<String, Set<QueryPreviewResult>> results)
Called when search previews are generated (of shouldGenerateTextPreviews was
true
).- Parameters:
searchString
- Search query passed into the search method.results
- Map of results.
-
-
-
-