GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Providing External Highlight

Providing External Highlight

Jump to bottom Edit New page
Hrishikesh Kadam edited this page Aug 20, 2018 · 3 revisions

You can provide highlight data from your application to FolioReader.The data structure of Highlight.

You can do that by creating a class which implements Highlight interface.

public class HighlightData implements HighLight {

    private String bookId;
    private String content;
    private Date date;
    private String type;
    private int pageNumber;
    private String pageId;
    private String rangy;
    private String uuid;
    private String note;

    @Override
    public String getBookId() {
        return bookId;
    }

    @Override
    public String getContent() {
        return content;
    }

    @Override
    public Date getDate() {
        return date;
    }

    @Override
    public String getType() {
        return type;
    }

    @Override
    public int getPageNumber() {
        return pageNumber;
    }

    @Override
    public String getPageId() {
        return pageId;
    }

    @Override
    public String getRangy() {
        return rangy;
    }

    @Override
    public String getUUID() {
        return uuid;
    }

    @Override
    public String getNote() {
        return note;
    }
}

In your Application.

FolioReader folioReader = FolioReader.get();

List<HighlightData> highlightData = new ArrayList<>();
folioReader.saveReceivedHighLights(
       highlightList,// provide highlightdata ArrayList<>()
       new OnSaveHighlight() {
            @Override
            public void onFinished() {
                //You can do anything on successful saving highlight list
            }
       }
);
Add a custom footer
  • Home
  • Configuration
    • Custom Configuration
  • Highlight
    • Highlight Action
    • Highlight Event
    • Providing External Highlight
  • ReadLocator
  • Clean up code

Clone this wiki locally

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.