ContentPositionTimelineUnit

Describes the different units of measure that can be used with ContentPositionTimelines.

Entries

Link copied to clipboard

The ContentPositionTimeline uses characters (Unicode codepoints) to calculate positions. Incrementing the timeline position by 1 advances the position in the publication content by 1 character.

Link copied to clipboard

The ContentPositionTimeline uses ReaderDocuments to calculate positions. Incrementing the timeline position by 1 advances the position in the publication content by 1 ReaderDocument.

Link copied to clipboard

The ContentPositionTimeline uses pages to calculate positions. Note that this only applies to pre-paginated content such as fixed-layout EPUBs and PDFs. Incrementing the timeline position by 1 advances the position in the publication content by 1 page.

Link copied to clipboard

The ContentPositionTimeline uses words to calculate positions. Incrementing the timeline position by 1 advances the position in the publication content by 1 word.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard