CacheListener interface is to handle cache task for FixedLayout.
boolean com.skytree.epub.CacheListener.cacheExist |
( |
int |
pageIndex | ) |
|
true should be returned to skyepub engine when the cache image for pageIndex exists.
- Parameters
-
- Returns
Bitmap com.skytree.epub.CacheListener.getCachedBitmap |
( |
int |
pageIndex | ) |
|
callback function to return the Bitmap image of the pageIndex to SDK engine.
- Parameters
-
- Returns
void com.skytree.epub.CacheListener.onCached |
( |
int |
pageIndex, |
|
|
Bitmap |
bitmap, |
|
|
double |
progress |
|
) |
| |
called whenever the cacing task for one page is finished.
- Parameters
-
index | pageIndex to be cached. |
path | the path of the cached image file. |
void com.skytree.epub.CacheListener.onCachingFinished |
( |
int |
numberOfCached | ) |
|
called when caching task finished.
- Parameters
-
void com.skytree.epub.CacheListener.onCachingStarted |
( |
int |
numberOfUncached | ) |
|
called when caching task started.
- Parameters
-
The documentation for this interface was generated from the following file:
- /Users/skytree/Documents/Projects/workspace/SkyReader/src/com/skytree/epub/CacheListener.java