-
Notifications
You must be signed in to change notification settings - Fork 716
Providing External Highlight
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
}
}
);