Characters

class Characters(val fetchWithLowPriority: Boolean = false, val serializedData: String? = null, val mappingOptions: EpubCharactersContentPositionTimelineMappingOptions = EpubCharactersContentPositionTimelineMappingOptions()) : EpubContentPositionTimelineOptions

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

Constructors

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

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

Options specifying how characters and media elements should be mapped to timeline positions.

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.