FolioReaderContainer

open class FolioReaderContainer : UIViewController

Reader container

  • Init a Folio Reader Container

    Declaration

    Swift

    public init(withConfig config: FolioReaderConfig, folioReader: FolioReader, epubPath path: String, unzipPath: String? = nil, removeEpub: Bool = true)

    Parameters

    config

    Current Folio Reader configuration

    folioReader

    Current instance of the FolioReader kit.

    path

    The ePub path on system. Must not be nil nor empty string.

    unzipPath

    Path to unzip the compressed epub.

    removeEpub

    Should delete the original file after unzip? Default to true so the ePub will be unziped only once.

  • Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Set the FolioReaderConfig and epubPath.

    Declaration

    Swift

    open func setupConfig(_ config: FolioReaderConfig, epubPath path: String, unzipPath: String? = nil, removeEpub: Bool = true)

    Parameters

    config

    Current Folio Reader configuration

    path

    The ePub path on system. Must not be nil nor empty string.

    unzipPath

    Path to unzip the compressed epub.

    removeEpub

    Should delete the original file after unzip? Default to true so the ePub will be unziped only once.

  • Declaration

    Swift

    override open func viewDidLoad()
  • Declaration

    Swift

    override open func viewDidAppear(_ animated: Bool)