-
public class ImageNavigatorFragment.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static ImageNavigatorFragment.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final FragmentFactorycreateFactory(Publication publication, Locator initialLocator, ImageNavigatorFragment.Listener listener)Factory for ImageNavigatorFragment. final FragmentFactorycreateDummyFactory()Creates a factory for a dummy ImageNavigatorFragment. -
-
Method Detail
-
createFactory
final FragmentFactory createFactory(Publication publication, Locator initialLocator, ImageNavigatorFragment.Listener listener)
Factory for ImageNavigatorFragment.
- Parameters:
publication- Bitmap-based publication to render in the navigator.initialLocator- The first location which should be visible when rendering the publication.listener- Optional listener to implement to observe events, such as user taps.
-
createDummyFactory
final FragmentFactory createDummyFactory()
Creates a factory for a dummy ImageNavigatorFragment.
Used when Android restore the ImageNavigatorFragment after the process was killed. You need to make sure the fragment is removed from the screen before
onResumeis called.
-
-
-
-