onSearchPreviewsGenerated

abstract fun onSearchPreviewsGenerated(@NonNull searchString: String, @NonNull results: Map<String, Set<QueryPreviewResult>>)

Called when search previews are generated (of shouldGenerateTextPreviews was true).

Parameters

searchString

Search query passed into the search method.

results

Map of results. Map keys are document UIDs and values are sets of objects representing each search hit.