createFragmentFactory
fun createFragmentFactory(initialLocator: Locator?, readingOrder: List<Link>? = null, initialPreferences: EpubPreferences = EpubPreferences(), listener: EpubNavigatorFragment.Listener? = null, paginationListener: EpubNavigatorFragment.PaginationListener? = null, configuration: EpubNavigatorFragment.Configuration = EpubNavigatorFragment.Configuration()): FragmentFactory
Creates a factory for EpubNavigatorFragment.
Parameters
initialLocator
The first location which should be visible when rendering the publication. Can be used to restore the last reading location.
readingOrder
Custom reading order to override the publication's one.
initialPreferences
The set of preferences that should be initially applied to the navigator.
listener
Optional listener to implement to observe navigator events.
paginationListener
Optional listener to implement to observe events related to pagination.
configuration
Additional configuration.