EpubLink

class EpubLink(val rect: KiteRectangle, val href: String, val kind: EpubLinkKind = EpubLinkKind.LINK)(source)

A tappable link region on an EpubPage. rect is in display space (y-down; y-min stored in KiteRectangle.bottom). href is either zipPath#fragment (internal, resolve with the document's href navigation) or an external URL. kind says what the link is for, such as a note reference, which a reader can open in place with EpubDocument.linkTarget.

The page gives the links of its own markup. Make one for a link that comes from elsewhere, such as a web view over an embedded document that opens a link (#41).

Constructors

Link copied to clipboard
constructor(rect: KiteRectangle, href: String, kind: EpubLinkKind = EpubLinkKind.LINK)

Properties

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