public interface SearchResultCallback
Modifier and Type | Method and Description |
---|---|
void |
onResultReceived(SearchResult result)
This method is invoked each time when the status of the text search initiated by invoking the
每次在加载的网页上调用Browser.findText(SearchParams,SearchResultCallback)方法启动的文本搜索状态更新时,都会调用此方法。 Browser.findText(SearchParams, SearchResultCallback) method on the loaded web page is updated.
|
void onResultReceived(SearchResult result)
Browser.findText(SearchParams, SearchResultCallback)
method on the loaded web page is updated. If the search is not interrupted and completes, this method will be invoked the last time with the
result
object, that has the
SearchResult.isCompleted
set to
true
. The number how many times this method will be invoked during one search is not defined and depends on the speed the Chromium engine is able process this search with.
result
- contains information about search result, such as a number of matches, index of the currently highlighted and selected match, and whether the search is completed.
-包含有关搜索结果的信息,例如匹配数,当前突出显示和所选匹配项的索引以及搜索是否完成。