PSPDFKit Preferences
Allows you to read and write global preferences.
Functions
Link copied to clipboard
Wipes all user preferences, handle with care.
Link copied to clipboard
Retrieves the annotation creator
Link copied to clipboard
Gets the list of annotation tools as they were last used/selected.
Link copied to clipboard
open fun getLastToolbarPosition(@NonNull contextualToolbar: ContextualToolbar, @NonNull defaultPosition: ToolbarCoordinatorLayout.LayoutParams.Position): ToolbarCoordinatorLayout.LayoutParams.Position
Gets the last position of the given toolbar.
Link copied to clipboard
Gets the recently used colors.
Link copied to clipboard
Checks if the annotation creator has been set
Link copied to clipboard
Returns True if it's the first time launching comparison alignment dialog and false when it has been launched before.
Link copied to clipboard
Returns
true
if snapping to page graphics for measurement tools is enabled.Link copied to clipboard
Returns
true
if smart guides for various angles is enabled.Link copied to clipboard
Returns
true
if snapping to self is enabled.Link copied to clipboard
Resets the annotation creator by nullifying the value.
Link copied to clipboard
Sets the annotation creator.
Link copied to clipboard
Sets if comparison alignment dialog has been launched before
Link copied to clipboard
open fun setLastAnnotationTool(@NonNull tool: AnnotationTool, @NonNull toolVariant: AnnotationToolVariant)
Sets the last used annotation tool.
Link copied to clipboard
open fun setLastToolbarPosition(@NonNull contextualToolbar: ContextualToolbar, @NonNull position: ToolbarCoordinatorLayout.LayoutParams.Position)
Saves the last position of the given toolbar.
Link copied to clipboard
Enables snapping to page graphics for measurement tools.
Link copied to clipboard
Replaces the list of recently used colors with the new list.
Link copied to clipboard
Enables smart guides for predefined angles.
Link copied to clipboard
Enables snapping to itself at the end of shape
Link copied to clipboard
open fun setStylusSettingChangeListener(@Nullable stylusSettingChangeListener: StylusSettingChangeListener)
A listener for when the stylus setting changes for real time updates to the toolbar.
Link copied to clipboard
Enables or disables the usage of stylus during drawing
Link copied to clipboard
Returns
true
if we should only use the stylus during drawing.