SkyEpub SDK for Android 7
 All Classes Functions Variables
Public Member Functions | List of all members
com.skytree.epub.BookmarkListener Interface Reference

Public Member Functions

void onBookmarkHit (PageInformation pi, boolean isBookmarked)
 
Rect getBookmarkRect (boolean isBookmarked)
 
Bitmap getBookmarkBitmap (boolean isBookmarked)
 
boolean isBookmarked (PageInformation pi)
 

Detailed Description

BookmarkListener is interface to handle Bookmark related events.

Author
skytree

Member Function Documentation

Bitmap com.skytree.epub.BookmarkListener.getBookmarkBitmap ( boolean  isBookmarked)

Bitmap for bookmark should be sent to sdk by getBookmarkBitmap

Parameters
isBookmarkedif true, Bitmap for bookmarked icon should be sent.
Returns
Bitmap Object for Bookmark Icon
Rect com.skytree.epub.BookmarkListener.getBookmarkRect ( boolean  isBookmarked)

Rect information for bookmark should be sent to sdk by getBookmarkRect.

Parameters
isBookmarkedif true, Rect for bookmarked icon area should be sent.
Returns
Rect Object for Bookmark icon area
boolean com.skytree.epub.BookmarkListener.isBookmarked ( PageInformation  pi)

if some position of pageInformation pi is bookmarked, you should send true to sdk.

Parameters
pi
Returns
boolean value if the position for pi is bookmarked or not.
void com.skytree.epub.BookmarkListener.onBookmarkHit ( PageInformation  pi,
boolean  isBookmarked 
)

onBookmarkHit will be fired when user taps on bookmark icon.

Parameters
piPageInformation object to have the position of bookmark
isBookmarkedif this page is bookmarked, isBookmarked is true.

The documentation for this interface was generated from the following file: