EpubContentBlockOptions

data class EpubContentBlockOptions(val attributeNamesThatCreateContentBlocks: List<String>? = null, val disableDefaultAttributeFiltering: Boolean = false, val includeMathMlContentBlocks: Boolean = false, val includePreContentBlocks: Boolean = false)

Options used for configuring ContentBlocks in EpubReaderPublications.

Constructors

Link copied to clipboard
constructor(attributeNamesThatCreateContentBlocks: List<String>? = null, disableDefaultAttributeFiltering: Boolean = false, includeMathMlContentBlocks: Boolean = false, includePreContentBlocks: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Attribute names that should always trigger a new ContentBlock to be created. Attributes defined in this list will be available even if disableDefaultAttributeFiltering is set to false.

Link copied to clipboard

If set to true, the default attribute filtering is disabled. This means that all attributes will be available in ContentBlocks.

Link copied to clipboard

If set to true, the ContentBlockTree will include MathML related content blocks. NOTE: This option can only be set when calling ReadingSystemEngine.loadPublication(). It is NOT possible to change this option using ReaderPublication.setOptions().

Link copied to clipboard

If set to true, the ContentBlockTree will include

 content blocks. NOTE: This option can only be set when calling ReadingSystemEngine.loadPublication(). It is NOT possible to change this option using ReaderPublication.setOptions().

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)