Text

data class Text(val before: String? = null, val highlight: String? = null, val after: String? = null) : JSONable, Parcelable

Textual context of the locator.

A Locator Text Object contains multiple text fragments, useful to give a context to the Locator or for highlights. https://github.com/readium/architecture/tree/master/models/locators#the-text-object

Parameters

before

The text before the locator.

highlight

The text at the locator.

after

The text after the locator.

Constructors

Link copied to clipboard
constructor(before: String? = null, highlight: String? = null, after: String? = null)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
Link copied to clipboard
open override fun toJSON(): JSONObject

Serializes the object to its JSON representation.

Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)