Enable/disable annotation editing Deo #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Details
This pull request introduces support for enabling and disabling annotation editing in the Nutrient Flutter plugin. The changes span Android, iOS, and Dart implementations, providing a unified API for managing annotation editing capabilities. Additionally, an example showcasing this functionality has been added to the project.
Feature Implementation: Annotation Editing
Android Changes:
enableAnnotationEditing
inPspdfkitViewImpl
to updatePdfActivityConfiguration
dynamically for enabling or disabling annotation editing.PspdfkitWidgetControllerApi
interface and its message handler to include theenableAnnotationEditing
method. [1] [2]iOS Changes:
enableAnnotationEditing
method inPspdfkitPlatformViewImpl
to modifyeditableAnnotationTypes
in the PDF view controller configuration based on the provided parameters.PspdfkitWidgetControllerApi
protocol and its message handler for the new method. [1] [2]Dart API Updates:
enableAnnotationEditing
method inPspdfkitWidgetController
and its implementations (PspdfkitWidgetControllerImpl
,PspdfkitWidgetControllerNative
, andPspdfkitWidgetControllerWeb
). [1] [2] [3] [4]Example Addition:
DisableAnnotationEditingExample
to demonstrate the usage of theenableAnnotationEditing
method, allowing users to toggle annotation editing via a button.Miscellaneous Updates:
These changes collectively enhance the PSPDFKit Flutter plugin by providing a flexible API for annotation editing, along with a practical example to help you understand and utilize the feature effectively. We will add this feature to our roadmap for future implementation.