FolioReaderConfig

open class FolioReaderConfig : NSObject

Defines the Reader custom configuration

  • Array of ClassBasedOnClickListener objects. A ClassBasedOnClickListener takes a closure which is performed if a given html class is clicked. The closure will reveice the content of the specified parameter.

    Eg. A ClassBasedOnClickListener with the className quote and parameterName id with the given epub html content <section class="quote" id="12345"> would call the given closure on a click on this section with the String 12345 as parameter.

    Declaration

    Swift

    open var classBasedOnClickListeners: [ClassBasedOnClickListener]
  • Base header custom TintColor

    Declaration

    Swift

    open var tintColor: UIColor
  • Menu background color

    Declaration

    Swift

    open var menuBackgroundColor: UIColor
  • Menu separator Color

    Declaration

    Swift

    open var menuSeparatorColor: UIColor
  • Menu text color

    Declaration

    Swift

    open var menuTextColor: UIColor
  • Night mode background color

    Declaration

    Swift

    open var nightModeBackground: UIColor
  • Night mode menu background color

    Declaration

    Swift

    open var nightModeMenuBackground: UIColor
  • Night mode separator color

    Declaration

    Swift

    open var nightModeSeparatorColor: UIColor
  • Media overlay or TTS selection color

    Declaration

    Swift

    open lazy var mediaOverlayColor: UIColor! { get set }
  • hide the navigation bar and the bottom status view

    Declaration

    Swift

    open var hideBars: Bool
  • If canChangeScrollDirection is true it will be overrided by user’s option.

    Declaration

    Swift

    open var scrollDirection: FolioReaderScrollDirection
  • Enable or disable hability to user change scroll direction on menu.

    Declaration

    Swift

    open var canChangeScrollDirection: Bool
  • Should hide navigation bar on user tap

    Declaration

    Swift

    open var shouldHideNavigationOnTap: Bool
  • Allow sharing option, if false will hide all sharing icons and options

    Declaration

    Swift

    open var allowSharing: Bool
  • Enable TTS (Text To Speech)

    Declaration

    Swift

    open var enableTTS: Bool
  • Display book title in navbar

    Declaration

    Swift

    open var displayTitle: Bool
  • Hide the page indicator

    Declaration

    Swift

    open var hidePageIndicator: Bool
  • Go to saved position when open a book

    Declaration

    Swift

    open var loadSavedPositionForCurrentBook: Bool
  • Realm configuration for storing highlights

    Declaration

    Swift

    open var realmConfiguration: Realm.Configuration