Flow

data class Flow(val chapter: Int, val charOffset: Int = 0, val fragment: String? = null) : KiteBookmark

A place inside one reflowable chapter.

Parameters

chapter

the spine item, zero-based.

charOffset

how far into the chapter's text the position is, in characters of reading order. Re-flowing moves the words to another page, but not to another offset. Hyphenation can shift it by a few characters; this is a reading position, not a pointer.

fragment

an element id (<h2 id="part-two">), when the position came from a link or a table-of-contents entry. It wins over charOffset when it resolves.

Constructors

Link copied to clipboard
constructor(chapter: Int, charOffset: Int = 0, fragment: String? = null)

Properties

Link copied to clipboard
open override val chapter: Int
Link copied to clipboard
Link copied to clipboard