ReaderPublicationData

data class ReaderPublicationData(val availableContentPositionTimelineUnits: List<ContentPositionTimelineUnit>, val availableSyncMediaFormats: List<SyncMediaFormat>, val defaultLocatorUrl: String, val sourcePublicationHashSignature: String, val spine: List<ReaderDocumentData>)

Represents a serializable version of ReaderPublication, returned when calling ReaderPublication.toJSON();

Constructors

Link copied to clipboard
fun ReaderPublicationData(availableContentPositionTimelineUnits: List<ContentPositionTimelineUnit>, availableSyncMediaFormats: List<SyncMediaFormat>, defaultLocatorUrl: String, sourcePublicationHashSignature: String, spine: List<ReaderDocumentData>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

The units of measure that can be used when creating ContentPositionTimeline objects using this publication.

Link copied to clipboard

The sync media formats available in this publication.

Link copied to clipboard

The base URL used when creating Locators pointing to content in this publication.

Link copied to clipboard

The generated hash signature of the source publication, intended to uniquely identify the source publication.

Link copied to clipboard

The ordered list of ReaderDocumentData instances that are part of this publication.