addSection
fun addSection(parentSection: TOCReference, sectionTitle: String?, resource: Resource, fragmentId: String? = null): TOCReference(source)
Adds the resource to the table of contents of the book as a child section of the given parentSection
Return
The table of contents
Parameters
parentSection
sectionTitle
resource
fragmentId
fun addSection(title: String?, resource: Resource, fragmentId: String? = null): TOCReference(source)
Adds a resource to the book's set of resources, table of contents and if there is no resource with the id in the spine also adds it to the spine.
Return
The table of contents
Parameters
title
resource
fragmentId