textFragment
open suspend fun textFragment(document: Document, range: DocumentProvider.DocumentRange): String(source)
Extracts a specified fragment of text from a given document based on a defined range.
Return
A string containing the text fragment within the specified range of the document.
Parameters
document
The document from which the text fragment will be extracted.
range
The range in the document that defines the start and end positions of the text fragment.