DefaultLocatorService

open class DefaultLocatorService(val readingOrder: List<Link>, val positionsByReadingOrder: suspend () -> List<List<Locator>>) : LocatorService

Constructors

Link copied to clipboard
constructor(readingOrder: List<Link>, positionsByReadingOrder: suspend () -> List<List<Locator>>)
constructor(readingOrder: List<Link>, services: PublicationServicesHolder)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()

Closes any opened file handles, removes temporary files, etc.

Link copied to clipboard
open suspend override fun locate(locator: Locator): Locator?

Locates the target of the given locator.

Link copied to clipboard
open suspend override fun locateProgression(totalProgression: Double): Locator?

Locates the target at the given totalProgression relative to the whole publication.