EpubReaderState
State holder for EpubReader. Wraps the core Navigator and exposes its current position as snapshot state so Compose recomposes on chapter changes.
Properties
Link copied to clipboard
Last #fragment requested by goto / gotoResource.
Link copied to clipboard
The chapter Resource currently displayed, or null if none. Changes recompose readers of this state.
Link copied to clipboard
Whether a previous spine section exists to navigate to via previous.
Functions
Link copied to clipboard
Link copied to clipboard
Navigate to resource, optionally scrolling to the named fragmentId within the chapter (the part after #).
Link copied to clipboard
Goes back to the previous spine section. No-op if hasPrevious is false.