Properties

data class Properties(val otherProperties: Map<String, Any> = emptyMap()) : JSONable, Parcelable

Properties associated to the linked resource.

This is opened for extensions. https://readium.org/webpub-manifest/schema/link.schema.json

Constructors

Link copied to clipboard
constructor(otherProperties: Map<String, Any> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Indicates that the linked resource supports authentication with the associated Authentication Document.

Link copied to clipboard

Indicated the availability of a given resource.

Link copied to clipboard

Specifies whether or not the parts of a linked resource that flow out of the viewport are clipped.

Link copied to clipboard

Identifies content contained in the linked resource, that cannot be strictly identified using a media type.

Link copied to clipboard

Library-specific feature that contains information about the copies that a library has acquired.

Link copied to clipboard

Indicates that a resource is encrypted/obfuscated and provides relevant information for decryption.

Link copied to clipboard

Suggested method for constraining a resource inside the viewport.

Link copied to clipboard

Library-specific features when a specific book is unavailable but provides a hold list.

Link copied to clipboard

Indirect acquisition provides a hint for the expected media type that will be acquired after additional steps.

Link copied to clipboard

Hints how the layout of the resource should be presented.

Link copied to clipboard

Provides a hint about the expected number of items returned.

Link copied to clipboard

Suggested orientation for the device when displaying the linked resource.

Link copied to clipboard
Link copied to clipboard

Suggested method for handling overflow while displaying the linked resource.

Link copied to clipboard

Indicates how the linked resource should be displayed in a reading environment that displays synthetic spreads.

Link copied to clipboard

The price of a publication is tied to its acquisition link.

Link copied to clipboard

Indicates the condition to be met for the linked resource to be rendered within a synthetic spread.

Functions

Link copied to clipboard
fun add(properties: Map<String, Any>): Properties
fun add(properties: Properties): Properties

Makes a copy of this Properties after merging in the given additional other properties.

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
operator fun get(key: String): Any?

Syntactic sugar to access the otherProperties values by subscripting Properties directly. properties["price"] == properties.otherProperties["price"]

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

Serializes a Properties to its RWPM JSON representation.

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