| com.pspdfkit.ui.special_mode.controller.TextSelectionController |
Default controller given when entering text selection mode. Used to control text selection actions.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| interface | TextSelectionController.OnSearchSelectedTextListener | Listener invoked when TextSelectionController wants to perform search for the selected text. |
|||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
createLinkAboveSelectedText()
Creates link above the selected text.
| ||||||||||
| abstract TextSelection |
getTextSelection()
Returns the current text selection.
| ||||||||||
| abstract TextSelectionManager |
getTextSelectionManager()
Get text selection manager for registering text selection listeners from the controller.
| ||||||||||
| abstract void |
highlightSelectedText()
Highlight currently selected text.
| ||||||||||
| abstract boolean |
isLinkCreationEnabledByConfiguration()
Indicates whether annotation editing is enabled by configuration and link annotations are editable.
| ||||||||||
| abstract boolean |
isRedactionEnabledByConfiguration()
Indicates whether text redaction is enabled by configuration-
| ||||||||||
| abstract boolean |
isTextExtractionEnabledByDocumentPermissions()
Indicates whether the text extraction is enabled by document permissions, meaning the document contains
EXTRACT permission. | ||||||||||
| abstract boolean |
isTextHighlightingEnabledByConfiguration()
Indicates whether annotation editing (text highlights are annotations) is enabled by configuration.
| ||||||||||
| abstract boolean |
isTextSharingEnabledByConfiguration()
Indicates whether text sharing is enabled by configuration.
| ||||||||||
| abstract boolean |
isTextSpeakEnabledByDocumentPermissions()
Indicates whether the text extraction for accessibility purposes is enabled by document permissions, meaning
the document contains
EXTRACT_ACCESSIBILITY permission. | ||||||||||
| abstract void |
redactSelectedText()
Redact currently selected text.
| ||||||||||
| abstract void |
searchSelectedText()
Search currently selected text.
| ||||||||||
| abstract void |
setOnSearchSelectedTextListener(TextSelectionController.OnSearchSelectedTextListener searchSelectedTextListener)
Sets a new
TextSelectionController.OnSearchSelectedTextListener or replaces an existing one. | ||||||||||
| abstract void |
setTextSelection(TextSelection textSelection)
Sets the selected text.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pspdfkit.ui.special_mode.controller.base.FragmentSpecialModeController
| |||||||||||
From interface
com.pspdfkit.ui.special_mode.controller.base.SpecialModeController
| |||||||||||
Creates link above the selected text.
Returns the current text selection.
Get text selection manager for registering text selection listeners from the controller.
Highlight currently selected text.
Indicates whether annotation editing is enabled by configuration and link annotations are editable.
true if adding links is enabled by configuration, false otherwise.
Indicates whether text redaction is enabled by configuration-
true if text redaction is enabled, false otherwise.
Indicates whether the text extraction is enabled by document permissions, meaning the document contains
EXTRACT permission.
true if text extraction is enabled, false otherwise.
Indicates whether annotation editing (text highlights are annotations) is enabled by configuration.
true if adding highlight annotations is enabled by configuration, false otherwise.
Indicates whether text sharing is enabled by configuration.
true if text sharing is enabled by configuration, false otherwise.
Indicates whether the text extraction for accessibility purposes is enabled by document permissions, meaning
the document contains EXTRACT_ACCESSIBILITY permission.
true if text extraction for accessibility purposes is enabled, false otherwise.
Redact currently selected text.
Search currently selected text.
Sets a new TextSelectionController.OnSearchSelectedTextListener or replaces an existing one. This allows custom handling for selected text search.
| searchSelectedTextListener | New listener or null to clear the listener.
|
|---|
Sets the selected text.
| textSelection | Text selection to select. |
|---|