get Search Result Item By Annotation
Gets the SearchResultItem associated with the specified ReaderViewAnnotation. Use this method when:
Listening on "annotationClick" to know which SearchResultItem that was clicked.
Listening on "annotationIntersectingVisibleRange" to know which SearchResultItems that are currently visible in the ReaderView.
searchHighlightAnnotationLayer.addOnAnnotationIntersectsVisibleRangeChangedListener(object: OnAnnotationIntersectsVisibleRangeChangedListener {
override fun onAnnotationIntersectsVisibleRangeChanged(annotation: ReaderViewAnnotation) {
// Add to list of visible search results.
}
})
Content copied to clipboard