-
public class PdfNavigatorFragment.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static PdfNavigatorFragment.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final <P extends Configurable.Preferences<P>> FragmentFactorycreateFactory(Publication publication, Locator initialLocator, P preferences, PdfNavigatorFragment.Listener listener, PdfEngineProvider<?, P, ?> pdfEngineProvider)Creates a factory for PdfNavigatorFragment. final <P extends Configurable.Preferences<P>> FragmentFactorycreateDummyFactory(PdfEngineProvider<?, P, ?> pdfEngineProvider)Creates a factory for a dummy PdfNavigatorFragment. -
-
Method Detail
-
createFactory
final <P extends Configurable.Preferences<P>> FragmentFactory createFactory(Publication publication, Locator initialLocator, P preferences, PdfNavigatorFragment.Listener listener, PdfEngineProvider<?, P, ?> pdfEngineProvider)
Creates a factory for PdfNavigatorFragment.
- Parameters:
publication- PDF publication to render in the navigator.initialLocator- The first location which should be visible when rendering the publication.preferences- Initial set of user preferences.listener- Optional listener to implement to observe events, such as user taps.pdfEngineProvider- provider for third-party PDF engine adapter.
-
createDummyFactory
final <P extends Configurable.Preferences<P>> FragmentFactory createDummyFactory(PdfEngineProvider<?, P, ?> pdfEngineProvider)
Creates a factory for a dummy PdfNavigatorFragment.
Used when Android restore the PdfNavigatorFragment after the process was killed. You need to make sure the fragment is removed from the screen before
onResumeis called.
-
-
-
-