Package-level declarations

Types

Link copied to clipboard
value class CssSelector(val value: String)

A CSS selector.

Link copied to clipboard
Link copied to clipboard
data class Decoration<out L : DecorationLocation>(val id: Decoration.Id, val location: L, val style: Decoration.Style)

A decoration is a user interface element drawn on top of a publication. It associates a style to be rendered with a discrete location in the publication.

Link copied to clipboard

Represents an atomic change in a list of Decoration objects.

Link copied to clipboard

A controller for decorations.

Link copied to clipboard

A listener for events related to decorations.

Link copied to clipboard

Marker interface for decoration location.

Link copied to clipboard

A Location which can be converted to a Locator.

Link copied to clipboard
data class FootnoteContext(val noteContent: String) : LinkContext
Link copied to clipboard
interface GoLocation : Location

Location the navigator can go to.

Link copied to clipboard

This listener lets you decide what to do when hyperlinks are activated, whether they point to a readingOrder item, a non-linear resource or external content.

Link copied to clipboard
interface InputListener

A listener for input events.

Link copied to clipboard
sealed interface LinkContext

This holds additional information about a link. For instance, it will be an instance of FootnoteContext if the link is a reference mark.

Link copied to clipboard
interface Location

A location in a publication.

Link copied to clipboard

This controller enables to navigate through a publication and reports the current location.

Link copied to clipboard
interface Overflow

Holds information about the presentation of a publication.

Link copied to clipboard

This controller enables navigation through the viewport of an overflowing publication.

Link copied to clipboard
value class Position

A position in publication.

Link copied to clipboard

A Location including a Position.

Link copied to clipboard
interface Preferences<P : Preferences<P>>

Marker interface for the Preferences properties holder.

Link copied to clipboard

Interactive editor of settings.

Link copied to clipboard
fun interface PreferencesFilter<P : Preferences<P>>

A filter to keep only some preferences and filter out some others.

Link copied to clipboard

JSON serializer of P.

Link copied to clipboard

A progression value, ranging from 0 to 1.

Link copied to clipboard
Link copied to clipboard

The state of the rendition, giving access to a NavigationController after the first composition.

Link copied to clipboard
data class Selection<S : SelectionLocation>(val text: String, val rect: DpRect, val location: S)

Represents a user content selection in a navigator.

Link copied to clipboard

A controller for selection.

Link copied to clipboard

Marker interface for a Location locating a selection.

Link copied to clipboard
interface Settings

Marker interface for the Settings properties holder.

Link copied to clipboard

A controller for rendition settings.

Link copied to clipboard
data class SimpleOverflow(val readingProgression: ReadingProgression, val scroll: Boolean, val axis: Axis) : Overflow
Link copied to clipboard
data class TapContext(val viewport: DpSize)

Provides additional context for the tap event.

Link copied to clipboard
data class TapEvent(val offset: DpOffset)

Represents a tap event at the given offset.

Link copied to clipboard
data class TextQuote(val text: String, val prefix: String, val suffix: String)

A TextQuote is a short text quote allowing to target a specific range of text. prefix and suffix are useful to give enough context to make the location less ambiguous.

Link copied to clipboard

A Location including a TextQuote.

Functions

Link copied to clipboard

Lists the atomic changes between the receiver list and the target list of Decoration objects.

Link copied to clipboard

The default implementation of DecorationListener which does nothing at the moment.

Link copied to clipboard
fun <L : ExportableLocation> defaultHyperlinkListener(controller: NavigationController<L, *>?, shouldFollowReadingOrderLink: NavigationController<L, *>.(Url, LinkContext?) -> Boolean = { _, _ -> true }, onNonLinearLinkActivated: NavigationController<L, *>.(Url, LinkContext?) -> Unit = { _, _ -> }, onExternalLinkActivated: NavigationController<L, *>.(AbsoluteUrl, LinkContext?) -> Unit = { _, _ -> }): HyperlinkListener

The default HyperlinkListener, following links to readingOrder items if shouldFollowReadingOrderLink returns true, which is always the case by default.

Link copied to clipboard
fun defaultInputListener(controller: OverflowController?, fallbackListener: InputListener? = null, tapEdges: Set<Orientation> = setOf( Orientation.Horizontal ), handleTapsWhileScrolling: Boolean = false, minimumHorizontalEdgeSize: Dp = 80.0.dp, horizontalEdgeThresholdPercent: Double? = 0.3, minimumVerticalEdgeSize: Dp = 80.0.dp, verticalEdgeThresholdPercent: Double? = 0.3): InputListener

The default InputListener, handling directional UI events (e.g. edge taps or arrow keys) to turn the pages of a visual rendition through an OverflowController.

Link copied to clipboard

Moves to the left content portion (eg. page) relative to the reading progression direction.

Link copied to clipboard

Moves to the right content portion (eg. page) relative to the reading progression direction.

Link copied to clipboard