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

Public Member Functions

void onCachingStarted (int numberOfUncached)
 
void onCachingFinished (int numberOfCached)
 
void onCached (int pageIndex, Bitmap bitmap, double progress)
 
boolean cacheExist (int pageIndex)
 
Bitmap getCachedBitmap (int pageIndex)
 

Detailed Description

CacheListener interface is to handle cache task for FixedLayout.

Member Function Documentation

boolean com.skytree.epub.CacheListener.cacheExist ( int  pageIndex)

true should be returned to skyepub engine when the cache image for pageIndex exists.

Parameters
pageIndex
Returns
Bitmap com.skytree.epub.CacheListener.getCachedBitmap ( int  pageIndex)

callback function to return the Bitmap image of the pageIndex to SDK engine.

Parameters
pageIndex
Returns
void com.skytree.epub.CacheListener.onCached ( int  pageIndex,
Bitmap  bitmap,
double  progress 
)

called whenever the cacing task for one page is finished.

Parameters
indexpageIndex to be cached.
paththe path of the cached image file.
void com.skytree.epub.CacheListener.onCachingFinished ( int  numberOfCached)

called when caching task finished.

Parameters
indexpageIndex to finish
void com.skytree.epub.CacheListener.onCachingStarted ( int  numberOfUncached)

called when caching task started.

Parameters
indexpageIndex to start

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