HyperlinkNavigator

A navigator supporting hyperlinks.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
sealed interface LinkContext
Link copied to clipboard

Properties

Link copied to clipboard
abstract val currentLocator: StateFlow<Locator>

Current position in the publication. Can be used to save a bookmark to the current position.

Functions

Link copied to clipboard
abstract fun go(link: Link, animated: Boolean = false): Boolean

Moves to the position in the publication targeted by the given link.

abstract fun go(locator: Locator, animated: Boolean = false): Boolean

Moves to the position in the publication corresponding to the given Locator.