createFragmentFactory

fun createFragmentFactory(initialLocator: Locator? = null, initialPreferences: P? = null, listener: PdfNavigatorFragment.Listener? = null): FragmentFactory

Creates a factory for PdfNavigatorFragment.

Parameters

initialLocator

The first location which should be visible when rendering the publication. Can be used to restore the last reading location.

initialPreferences

Initial set of user preferences.

listener

Optional listener to implement to observe events, such as user taps.