-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.view.View.OnCreateContextMenuListener,androidx.activity.result.ActivityResultCaller,androidx.lifecycle.HasDefaultViewModelProviderFactory,androidx.lifecycle.LifecycleOwner,androidx.lifecycle.ViewModelStoreOwner,androidx.savedstate.SavedStateRegistryOwner,org.readium.r2.navigator.Navigator,org.readium.r2.navigator.OverflowableNavigator,org.readium.r2.navigator.VisualNavigator
public final class ImageNavigatorFragment extends NavigatorFragment implements OverflowableNavigator
Navigator for bitmap-based publications, such as CBZ.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceImageNavigatorFragment.Listenerpublic classImageNavigatorFragment.Companion
-
Field Summary
-
Method Summary
Modifier and Type Method Description StateFlow<Locator>getCurrentLocator()ViewgetPublicationView()ReadingProgressiongetReadingProgression()Current reading progression direction. StateFlow<OverflowableNavigator.Overflow>getOverflow()Current presentation rendered by the navigator. LifecyclegetLifecycle()ViewModelStoregetViewModelStore()CreationExtrasgetDefaultViewModelCreationExtras()ViewModelProvider.FactorygetDefaultViewModelProviderFactory()final SavedStateRegistrygetSavedStateRegistry()LocatorgetCurrentLocation()StateFlow<Object>getPresentation()UnitonCreate(Bundle savedInstanceState)ViewonCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)UnitonStart()UnitonResume()UnitonDestroyView()final UnitnextResource(View v)final UnitpreviousResource(View v)Booleango(Locator locator, Boolean animated)Moves to the position in the publication corresponding to the given Locator. Booleango(Link link, Boolean animated)Moves to the position in the publication targeted by the given link. BooleangoForward(Boolean animated)Moves to the next content portion (eg. BooleangoBackward(Boolean animated)Moves to the previous content portion (eg. UnitaddInputListener(InputListener listener)Adds a new InputListener to receive touch, mouse or keyboard events. UnitremoveInputListener(InputListener listener)Removes a previously registered InputListener. -
Methods inherited from class org.readium.r2.navigator.NavigatorFragment
callStartTransitionListener, createFragmentContainer, dump, equals, findFragmentByWho, generateActivityResultKey, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getAnimatingAway, getArguments, getChildFragmentManager, getContext, getEnterAnim, getEnterTransition, getEnterTransitionCallback, getExitAnim, getExitTransition, getExitTransitionCallback, getFocusedView, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLoaderManager, getNextTransition, getParentFragment, getParentFragmentManager, getPopDirection, getPopEnterAnim, getPopExitAnim, getPostOnViewCreatedAlpha, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getSharedElementSourceNames, getSharedElementTargetNames, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, hasOptionsMenu, hashCode, initState, isAdded, isDetached, isHidden, isInBackStack, isInLayout, isMenuVisible, isPostponed, isRemoving, isResumed, isStateSaved, isVisible, noteStateNotSaved, onActivityCreated, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onSaveInstanceState, onStop, onViewCreated, onViewStateRestored, performActivityCreated, performAttach, performConfigurationChanged, performContextItemSelected, performCreate, performCreateOptionsMenu, performCreateView, performDestroy, performDestroyView, performDetach, performGetLayoutInflater, performLowMemory, performMultiWindowModeChanged, performOptionsItemSelected, performOptionsMenuClosed, performPause, performPictureInPictureModeChanged, performPrepareOptionsMenu, performPrimaryNavigationFragmentChanged, performResume, performSaveInstanceState, performStart, performStop, performViewCreated, postponeEnterTransition, postponeEnterTransition, registerForActivityResult, registerForActivityResult, registerForContextMenu, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, restoreChildFragmentState, restoreViewState, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setAnimations, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setFocusedView, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setNextTransition, setPopDirection, setPostOnViewCreatedAlpha, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementNames, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu -
Methods inherited from class org.readium.r2.navigator.OverflowableNavigator
firstVisibleElementLocator -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCurrentLocator
StateFlow<Locator> getCurrentLocator()
-
getPublicationView
View getPublicationView()
-
getReadingProgression
ReadingProgression getReadingProgression()
Current reading progression direction.
-
getOverflow
StateFlow<OverflowableNavigator.Overflow> getOverflow()
Current presentation rendered by the navigator.
-
getLifecycle
@NonNull() Lifecycle getLifecycle()
-
getViewModelStore
@NonNull() ViewModelStore getViewModelStore()
-
getDefaultViewModelCreationExtras
@NonNull()@CallSuper() CreationExtras getDefaultViewModelCreationExtras()
-
getDefaultViewModelProviderFactory
@NonNull() ViewModelProvider.Factory getDefaultViewModelProviderFactory()
-
getSavedStateRegistry
@NonNull() final SavedStateRegistry getSavedStateRegistry()
-
getCurrentLocation
Locator getCurrentLocation()
-
getPresentation
StateFlow<Object> getPresentation()
-
onCreateView
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onDestroyView
Unit onDestroyView()
-
nextResource
@Deprecated(message = Use goForward instead, replaceWith = @ReplaceWith(imports = {}, expression = goForward()), level = DeprecationLevel.ERROR) final Unit nextResource(View v)
-
previousResource
@Deprecated(message = Use goBackward instead, replaceWith = @ReplaceWith(imports = {}, expression = goBackward()), level = DeprecationLevel.ERROR) final Unit previousResource(View v)
-
go
Boolean go(Locator locator, Boolean animated)
Moves to the position in the publication corresponding to the given Locator.
-
go
Boolean go(Link link, Boolean animated)
Moves to the position in the publication targeted by the given link.
-
goForward
Boolean goForward(Boolean animated)
Moves to the next content portion (eg. page) in the reading progression direction.
-
goBackward
Boolean goBackward(Boolean animated)
Moves to the previous content portion (eg. page) in the reading progression direction.
-
addInputListener
Unit addInputListener(InputListener listener)
Adds a new InputListener to receive touch, mouse or keyboard events.
Registration order is critical, as listeners may consume the events and prevent others from receiving them.
-
removeInputListener
Unit removeInputListener(InputListener listener)
Removes a previously registered InputListener.
-
-
-
-