Interface TextSelectionController

  • All Implemented Interfaces:
    com.pspdfkit.ui.special_mode.controller.base.FragmentSpecialModeController , com.pspdfkit.ui.special_mode.controller.base.SpecialModeController

    
    public interface TextSelectionController
     implements FragmentSpecialModeController
                        

    Default controller given when entering text selection mode. Used to control text selection actions.

    • Constructor Detail

    • Method Detail

      • getTextSelectionManager

        @NonNull() abstract TextSelectionManager getTextSelectionManager()

        Gets text selection manager for registering text selection listeners from the controller.

        Returns:

        A text selection manager for managing the text selection listeners.

      • highlightSelectedTextAndBeginCommenting

         void highlightSelectedTextAndBeginCommenting()

        Highlight the currently selected text and begin editing its comments.

        Only useful in the context of Instant.

      • isTextHighlightingEnabledByConfiguration

         abstract boolean isTextHighlightingEnabledByConfiguration()

        Indicates whether annotation editing (text highlights are annotations) is enabled by configuration.

        Returns:

        true if adding highlight annotations is enabled by configuration, false otherwise.

      • isLinkCreationEnabledByConfiguration

         abstract boolean isLinkCreationEnabledByConfiguration()

        Indicates whether annotation editing is enabled by configuration and link annotations are editable.

        Returns:

        true if adding links is enabled by configuration, false otherwise.

      • isTextSharingEnabledByConfiguration

         abstract boolean isTextSharingEnabledByConfiguration()

        Indicates whether text sharing is enabled by configuration.

        Returns:

        true if text sharing is enabled by configuration, false otherwise.

      • isTextExtractionEnabledByDocumentPermissions

         abstract boolean isTextExtractionEnabledByDocumentPermissions()

        Indicates whether the text extraction is enabled by document permissions, meaning the document contains EXTRACT permission.

        Returns:

        true if text extraction is enabled, false otherwise.

      • isTextSpeakEnabledByDocumentPermissions

         abstract boolean isTextSpeakEnabledByDocumentPermissions()

        Indicates whether the text extraction for accessibility purposes is enabled by document permissions, meaning the document contains EXTRACT_ACCESSIBILITY permission.

        Returns:

        true if text extraction for accessibility purposes is enabled, false otherwise.

      • isRedactionEnabledByConfiguration

         abstract boolean isRedactionEnabledByConfiguration()

        Indicates whether text redaction is enabled by configuration-

        Returns:

        true if text redaction is enabled, false otherwise.

      • isInstantHighlightCommentingEnabledByConfiguration

         boolean isInstantHighlightCommentingEnabledByConfiguration()

        Indicates whether Instant Comments on text highlights are enabled by configuration

        Returns:

        true if creating an Instant Comment thread from a text highlight is enabled, false otherwise.