TextSearchResult

data class TextSearchResult(val pageIndex: Int, val range: ERROR CLASS: Symbol not found for Range, val rangeInPreview: ERROR CLASS: Symbol not found for Range, val previewText: String = "") : SearchResult

Represents a single text search result within a PDF document.

This is a work-in-progress implementation for the text search result object. Eventually we should migrate all the features from com.pspdfkit.document.search.SearchResult.

Constructors

Link copied to clipboard
constructor(pageIndex: Int, range: ERROR CLASS: Symbol not found for Range, rangeInPreview: ERROR CLASS: Symbol not found for Range, previewText: String = "")

Properties

Link copied to clipboard
open override val composeItemKey: String

A key that uniquely identifies the search result item to be used in jetpack compose lists for the key parameter. Should be something that can be put into a bundle

Link copied to clipboard
open override val pageIndex: Int

The zero-based index of the page containing this search result.

Link copied to clipboard

A text snippet showing the search result in context.

Link copied to clipboard
val range: ERROR CLASS: Symbol not found for Range

The character range of the matched text within the page.

Link copied to clipboard
val rangeInPreview: ERROR CLASS: Symbol not found for Range

The character range of the matched text within the preview text.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this search result to another object for equality.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for this search result.