//readium-shared/org.readium.r2.shared.publication/Locator/Text
Text¶
[androidJvm]\ 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¶
androidJvm
before | The text before the locator. |
highlight | The text at the locator. |
after | The text after the locator. |
Constructors¶
Text | [androidJvm] fun Text(before: String? = null, highlight: String? = null, after: String? = null) |
Types¶
Name | Summary |
---|---|
Companion | [androidJvm] object Companion |
Functions¶
Name | Summary |
---|---|
describeContents | [androidJvm] abstract fun describeContents(): Int |
substring | [androidJvm] fun substring(range: IntRange): Locator.Text |
toJSON | [androidJvm] open override fun toJSON(): JSONObject Serializes the object to its JSON representation. |
writeToParcel | [androidJvm] abstract fun writeToParcel(p0: Parcel, p1: Int) |
Properties¶
Name | Summary |
---|---|
after | [androidJvm] val after: String? = null |
before | [androidJvm] val before: String? = null |
highlight | [androidJvm] val highlight: String? = null |