Module apps.reader.modules.readerlink

ReaderLink is an abstraction for document-specific link interfaces.

Functions

ReaderLink:getLinkFromGes (ges) Gets link from gesture.
ReaderLink:showLinkBox (link, lbox, pos) Highlights a linkbox if available and goes to it.
ReaderLink:onGotoLink (link) Goes to link.
ReaderLink:onGoBackLink () Goes back to previous location.
ReaderLink:onGoToPageLink (ges, use_page_first_link) Goes to link nearest to the gesture (or first link in page)


Functions

ReaderLink:getLinkFromGes (ges)
Gets link from gesture. Document:getLinkFromPosition() behaves differently depending on document type, so this function provides a wrapper.

Parameters:

  • ges
ReaderLink:showLinkBox (link, lbox, pos)
Highlights a linkbox if available and goes to it.

Parameters:

  • link
  • lbox
  • pos
ReaderLink:onGotoLink (link)
Goes to link.

Parameters:

  • link
ReaderLink:onGoBackLink ()
Goes back to previous location.
ReaderLink:onGoToPageLink (ges, use_page_first_link)
Goes to link nearest to the gesture (or first link in page)

Parameters:

  • ges
  • use_page_first_link
generated by LDoc 1.4.6 Last updated 2017-10-08 14:57:40