NavigationHistory

A history of the user's locations with the epub.

Author

paul.siegmann

Constructors

Link copied to clipboard
constructor(navigator: Navigator)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Location(var href: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

If the time between a navigation event is less than the historyWaitTime then the new location is not added to the history.

Link copied to clipboard

Functions

Link copied to clipboard

Adds the location after the current position. If the currentposition is not the end of the list then the elements between the current element and the end of the list will be discarded.

fun addLocation(resource: Resource)
fun addLocation(href: String)
Link copied to clipboard
fun initBook(book: Book)
Link copied to clipboard
fun move(delta: Int): Boolean

Moves the current positions delta positions.

Link copied to clipboard
open override fun navigationPerformed(navigationEvent: NavigationEvent)

If this is not the source of the navigationEvent then the addLocation will be called with the href of the currentResource in the navigationEvent.