ActionEvent
Swift
public enum ActionEvent
Various events that are exposed to trigger actions.
Send these action events on the actionEventPublisher
provided to PDFView
.
-
Sets the current page while optionally animating the change.
Declaration
Swift
case setPageIndex(index: PageIndex, animated: Bool = true)
-
Set the view mode, optionally animated.
Declaration
Swift
case setViewMode(viewMode: ViewMode, animated: Bool = true)
-
Show or hide User Interface controls. optionally animated.
Declaration
Swift
case setUserInterfaceVisible(show: Bool, animated: Bool = true)
-
Scrolls to the next spread based on the current
spreadIndex
value.Declaration
Swift
case scrollToNextSpread(animated: Bool = true)
-
Scrolls to the previous spread based on the current
spreadIndex
value.Declaration
Swift
case scrollToPreviousSpread(animated: Bool = true)
-
Reloads the view hierarchy and triggers a re-render of a specific page.
Declaration
Swift
case reloadPage(index: PageIndex, animated: Bool = true)
-
Reloads the view hierarchy and triggers a re-render of specific pages.
Declaration
Swift
case reloadPages(indexes: IndexSet, animated: Bool = true)
-
Reloads the view hierarchy and triggers a re-render of the document.
Declaration
Swift
case reloadData
-
Show the annotation toolbar.
Declaration
Swift
case setAnnotationMode(showAnnotationMode: Bool, animated: Bool = true)
-
Searches for
searchText
within the current document.Declaration
Swift
case search(sender: AnyObject?, text: String? = nil, options: [PresentationOption : Any]? = nil, animated: Bool = true)
-
Presents the
OutlineViewController
if there is an outline defined in the PDF.Declaration
Swift
case showOutline(sender: AnyObject?)
-
Open the sharing interface to print, export, show the activity controller or share via email or messages.
Declaration
Swift
case share(destination: DocumentSharingConfiguration.Destination, sender: AnyObject?)
-
Presents the
PDFSettingsViewController
.To configure settings, see
PDFConfiguration.settingsOptions
Declaration
Swift
case settings(sender: AnyObject?)
-
Presents the
BrightnessViewController
to change the brightness and some related appearance options.To configure settings, see
PDFConfiguration.allowedAppearanceModes
Declaration
Swift
case brightness(sender: AnyObject?)
-
Show a reader view to simplify reading PDF content.
Requires the Reader View license component.
Declaration
Swift
case readerView(sender: AnyObject?)
-
Presents the
RedactionViewController
to show information about uncommitted redactions on the document.Requires the Redaction license component.
Declaration
Swift
case redactionInfo(sender: AnyObject?)