-
public class EpubNavigatorFragment.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static EpubNavigatorFragment.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final FragmentFactorycreateFactory(Publication publication, String baseUrl, Locator initialLocator, List<Link> readingOrder, EpubNavigatorFragment.Listener listener, EpubNavigatorFragment.PaginationListener paginationListener, EpubNavigatorFragment.Configuration config, EpubPreferences initialPreferences)Creates a factory for EpubNavigatorFragment. final FragmentFactorycreateDummyFactory()Creates a factory for a dummy EpubNavigatorFragment. final UrlassetUrl(String path)Returns a URL to the application asset at path, served in the web views. -
-
Method Detail
-
createFactory
@Deprecated(message = Use `EpubNavigatorFactory().createFragmentFactory()` instead, level = DeprecationLevel.ERROR) final FragmentFactory createFactory(Publication publication, String baseUrl, Locator initialLocator, List<Link> readingOrder, EpubNavigatorFragment.Listener listener, EpubNavigatorFragment.PaginationListener paginationListener, EpubNavigatorFragment.Configuration config, EpubPreferences initialPreferences)
Creates a factory for EpubNavigatorFragment.
- Parameters:
publication- EPUB publication to render in the navigator.baseUrl- A base URL where this publication is served from.initialLocator- The first location which should be visible when rendering the publication.readingOrder- Custom order of resources to display.listener- Optional listener to implement to observe events, such as user taps.config- Additional configuration.
-
createDummyFactory
final FragmentFactory createDummyFactory()
Creates a factory for a dummy EpubNavigatorFragment.
Used when Android restore the EpubNavigatorFragment after the process was killed. You need to make sure the fragment is removed from the screen before onResume is called.
-
-
-
-