//readium-navigator/org.readium.r2.navigator.epub/EpubNavigatorFragment/Companion/createFactory
createFactory¶
[androidJvm]\ fun createFactory(publication: Publication, baseUrl: String? = null, initialLocator: Locator? = null, listener: EpubNavigatorFragment.Listener? = null, paginationListener: EpubNavigatorFragment.PaginationListener? = null, config: EpubNavigatorFragment.Configuration = Configuration(), initialPreferences: EpubPreferences = EpubPreferences()): FragmentFactory
Creates a factory for EpubNavigatorFragment.
Parameters¶
androidJvm
publication | EPUB publication to render in the navigator. |
baseUrl | A base URL where this publication is served from. This is optional, only if you use a local HTTP server. |
initialLocator | The first location which should be visible when rendering the publication. Can be used to restore the last reading location. |
listener | Optional listener to implement to observe events, such as user taps. |
config | Additional configuration. |