1 package com.folioreader.util;
3 import com.folioreader.model.HighLight;
4 import com.folioreader.model.HighlightImpl;
7 * Interface to convey highlight events.
9 * @author gautam chibde on 26/9/17.
12 public interface OnHighlightListener {
15 * This method will be invoked when a highlight is created, deleted or modified.
17 * @param highlight meta-data for created highlight {@link HighlightImpl}.
18 * @param type type of event e.g new,edit or delete {@link com.folioreader.model.HighlightImpl.HighLightAction}.
20 void onHighlight(HighLight highlight, HighLight.HighLightAction type);