PerResourcePositionsService

class PerResourcePositionsService(readingOrder: List<Link>, fallbackMediaType: MediaType) : PositionsService

Simple PositionsService for a Publication which generates one position per readingOrder resource.

Parameters

fallbackMediaType

Media type that will be used as a fallback if the Link doesn't specify any.

Constructors

Link copied to clipboard
constructor(readingOrder: List<Link>, fallbackMediaType: MediaType)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()

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

Link copied to clipboard
open suspend fun positions(): List<Locator>

Returns the list of all the positions in the publication.

Link copied to clipboard
open suspend override fun positionsByReadingOrder(): List<List<Locator>>

Returns the list of all the positions in the publication, grouped by the resource reading order index.