Pages

class Pages(val fetchWithLowPriority: Boolean = false, val serializedData: String? = null) : EpubContentPositionTimelineOptions

Options object used when creating ContentPositionTimeline for EPUB Publications, using PAGES as unit of measurement.

Constructors

Link copied to clipboard
fun Pages(fetchWithLowPriority: Boolean = false, serializedData: String? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

Fetch operations might impact rendering and animation performance. If this is set to true, the timeline will wait for higher priority tasks to finish instead of executing the fetch operations immediately.

Link copied to clipboard
val serializedData: String? = null

Pass the data from ContentPositionTimeline.toSerializedData() that you saved from a previous instance. Settings this option allows the timeline to be built more quickly.

Link copied to clipboard

The unit of measurement used by the ContentPositionTimeline.