FolioReaderPageDelegate

@objc
public protocol FolioReaderPageDelegate : AnyObject

Protocol which is used from FolioReaderPages.

  • Notify that the page will be loaded. Note: The webview content itself is already loaded at this moment. But some java script operations like the adding of class based on click listeners will happen right after this method. If you want to perform custom java script before this happens this method is the right choice. If you want to modify the html content (and not run java script) you have to use htmlContentForPage() from the FolioReaderCenterDelegate.

    Declaration

    Swift

    @objc
    optional func pageWillLoad(_ page: FolioReaderPage)

    Parameters

    page

    The loaded page

  • Notifies that page did load. A page load doesn’t mean that this page is displayed right away, use pageDidAppear to get informed about the appearance of a page.

    Declaration

    Swift

    @objc
    optional func pageDidLoad(_ page: FolioReaderPage)

    Parameters

    page

    The loaded page

  • Notifies that page receive tap gesture.

    Declaration

    Swift

    @objc
    optional func pageTap(_ recognizer: UITapGestureRecognizer)

    Parameters

    recognizer

    The tap recognizer