Navigator
A helper class for EPUB browser applications.
Tracks the user's position within a Book, supports moving between resources, and notifies registered NavigationEventListeners.
Not thread-safe; protect external access if you call this from multiple coroutines.
Functions
Link copied to clipboard
Link copied to clipboard
The current position within the spine, or < 0 if the current position is not within the spine.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Go to a specific section. Illegal spine positions are silently ignored.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the current index and resource without calling the event listeners.
Link copied to clipboard
Sets the current index and resource without calling the event listeners.