TextSnippet

The TextSnippet can be extracted with a search result to present a preview text to the user.

Constructors

Link copied to clipboard
constructor(@NonNull text: String, @NonNull rangeInSnippet: Range)

Properties

Link copied to clipboard
The character range within the snippet text where the search term is located.
Link copied to clipboard
Preview text.

Functions

Link copied to clipboard
open fun toString(): String
Returns a string representation of this snippet including text and highlighted range.