VisualNavigator

A navigator rendering the publication visually on-screen.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
interface Presentation

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.

Link copied to clipboard
abstract val publicationView: View

View displaying the publication.

Functions

Link copied to clipboard
abstract fun addInputListener(listener: InputListener)

Adds a new InputListener to receive touch, mouse or keyboard events.

Link copied to clipboard
open suspend fun firstVisibleElementLocator(): Locator?

Returns the Locator to the first content element that begins on the current screen.

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.

Link copied to clipboard
abstract fun removeInputListener(listener: InputListener)

Removes a previously registered InputListener.