ReflowableStrategy

sealed class ReflowableStrategy

Strategy used to calculate the number of positions in a reflowable resource.

Note that a fixed-layout resource always has a single position.

Inheritors

Types

Link copied to clipboard

Use the archive entry length (whether it is compressed or stored) and split it by the given pageLength.

Link copied to clipboard
object Companion
Link copied to clipboard

Use the original length of each resource (before compression and encryption) and split it by the given pageLength.

Functions

Link copied to clipboard
abstract suspend fun positionCount(link: Link, resource: Resource): Int

Returns the number of positions in the given resource according to the strategy.