Search Result Item
data class SearchResultItem(val locator: SimpleLocatorData, val matchingText: String, val readerDocumentIndexInSpine: Int, val textAfter: String, val textBefore: String)
Represents a search result item containing a search match.
Constructors
Link copied to clipboard
constructor(locator: SimpleLocatorData, matchingText: String, readerDocumentIndexInSpine: Int, textAfter: String, textBefore: String)
Properties
Link copied to clipboard
The locator pointing to the matching text in the publication.
Link copied to clipboard
The matching text as found in the ReaderDocument.
Link copied to clipboard
The index of the ReaderDocument in the ReaderPublication spine where the match was found.
Link copied to clipboard
The text in the ReaderDocument just before the matching text. To configure this field, see TextSearchResultOptions.numberOfCharactersBefore
.