ContentDocumentData

data class ContentDocumentData(val hasRemoteResources: Boolean, val inLinearContent: Boolean, val indexInSpine: Int, val layout: ContentDocumentLayout, val mediaType: String?, val pageSpreadSlot: PageSpreadSlot, val scripted: Boolean, val syntheticSpreadBehavior: SyntheticSpreadBehavior)

Represents a source content document in a Publication.

Constructors

Link copied to clipboard
fun ContentDocumentData(hasRemoteResources: Boolean, inLinearContent: Boolean, indexInSpine: Int, layout: ContentDocumentLayout, mediaType: String?, pageSpreadSlot: PageSpreadSlot, scripted: Boolean, syntheticSpreadBehavior: SyntheticSpreadBehavior)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

If the publication metadata indicates that this resource internally contains references to other resources outside of this publication.

Link copied to clipboard

The index of the content document within the parent publication spine.

Link copied to clipboard

Indicates whether the content contributes to the primary reading order and has to be read sequentially, or auxiliary content that enhances or augments the primary content and can be accessed out of sequence. Examples of auxiliary content include: notes, descriptions and answer keys.

Link copied to clipboard

If this ContentDocument has been designed as a fixed-layout document, or if it can be reflowed/paginated.

Link copied to clipboard

The media type of this content document.

Link copied to clipboard

If the content document should be rendered in the left-hand slot, the right-hand slot or if synthetic spread mode should be overridden and a single viewport rendered and positioned at the center of the screen.

Link copied to clipboard

If the publication metadata indicates that this resource contains scripted content or forms.

Link copied to clipboard

Get in which orientations the reading system should present this content document in spread mode. If not defined by the content document, it defaults to publication.preferredSyntheticSpreadBehavior.