FolioReaderCenterDelegate
@objc
public protocol FolioReaderCenterDelegate : AnyObject
Protocol which is used from FolioReaderCenters.
-
Notifies that a page appeared. This is triggered when a page is chosen and displayed.
Declaration
Swift
@objc optional func pageDidAppear(_ page: FolioReaderPage)Parameters
pageThe appeared page
-
Passes and returns the HTML content as
String. Implement this method if you want to modify the HTML content of aFolioReaderPage.Declaration
Swift
@objc optional func htmlContentForPage(_ page: FolioReaderPage, htmlContent: String) -> StringParameters
pageThe
FolioReaderPage.htmlContentThe current HTML content as
String.Return Value
The adjusted HTML content as
String. This is the content which will be loaded into the givenFolioReaderPage. -
Notifies that a page changed. This is triggered when collection view cell is changed.
Declaration
Swift
@objc optional func pageItemChanged(_ pageNumber: Int)Parameters
pageNumberThe appeared page item
View on GitHub
Install in Dash
FolioReaderCenterDelegate Protocol Reference