Configuration

data class Configuration

Constructors

Link copied to clipboard
constructor(servedAssets: List<String> = emptyList(), readiumCssRsProperties: RsProperties = RsProperties(), decorationTemplates: HtmlDecorationTemplates = HtmlDecorationTemplates.defaultTemplates(), disablePageTurnsWhileScrolling: Boolean = false, selectionActionModeCallback: ActionMode.Callback? = null, shouldApplyInsetsPadding: Boolean? = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Supported HTML decoration templates.

Link copied to clipboard

Indicates if a user can swipe to change resources when scroll is enabled.

Link copied to clipboard

Disable user selection if the publication is protected by a DRM (e.g. with LCP).

Link copied to clipboard

Readium CSS reading system settings.

Link copied to clipboard

Custom ActionMode.Callback to be used when the user selects content.

Link copied to clipboard

Patterns for asset paths which will be available to EPUB resources under https://readium/assets/.

Link copied to clipboard

Whether padding accounting for display cutouts should be applied.

Link copied to clipboard

When disabled, the Android web view's WebSettings.textZoom will be used to adjust the font size, instead of using the Readium CSS's --USER__fontSize variable.

Functions

Link copied to clipboard
fun addFontFamilyDeclaration(fontFamily: FontFamily, alternates: List<FontFamily> = emptyList(), builderAction: MutableFontFamilyDeclaration.() -> Unit)

Adds a declaration for fontFamily using builderAction.

Link copied to clipboard

Registers a new factory for the JavascriptInterface named name.