OverflowableNavigator

A VisualNavigator with content that can extend beyond the viewport.

The user typically navigates through the publication by scrolling or tapping the viewport edges.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
interface Overflow

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 overflow: StateFlow<OverflowableNavigator.Overflow>

Current presentation rendered by the navigator.

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 goBackward(animated: Boolean = false): Boolean

Moves to the previous content portion (eg. page) in the reading progression direction.

Link copied to clipboard
abstract fun goForward(animated: Boolean = false): Boolean

Moves to the next content portion (eg. page) in the reading progression direction.

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

Removes a previously registered InputListener.