Category Archives: Posts

SkyEpub 5.2.1 for Android Released

Reflowable Layout
Some routines are modified to handle Android System WebView 44 issues.
New function is added.

// In case that text of page should be extracted, use rv.setExtractText(true),
/ then in onPageMoved event, you can get pageInformation.description for the text of current page.
public void setExtractText(boolean enabled);

SkyEpub 5.2.0 for Android Released

Reflowable Layout

/** execute custom script */
void executeJavascript(String code)
/** force sdk to draw highlight on the top of content. */
void setDrawingHighlightOnFront(boolean value)

Fixed Layout
/** execute Javascript on both pages in landscape */
void executeJavascript(String code)
/** execute javascript on left page (if forLeft is true) or on right page (if forRight is true)
void executeJavascript(String code,boolean forLeft)

/** change the window color */
void changeWindowColor(int color)
/** change the background color */
void changeBackgroundColor(int color)

/** load the custom script whenever each page is loaded */
void setCustomScript(String script)
/** load the custom style whenever each page is loaded */
void setCustomStyle(String style)

/** start caching process to capture each page */
void startCaching()
/** stop caching process */
void stopCaching()

 

CacheListener
public interface CacheListener {
/**
* called when caching task started.
* @param index pageIndex to start
*/
void onCachingStarted(int numberOfUncached);
/**
* called when caching task finished.
* @param index pageIndex to finish
*/
void onCachingFinished(int numberOfCached);
/**
* called whenever the cacing task for one page is finished.
* @param index pageIndex to be cached.
* @param path the path of the cached image file.
*/

void onCached(int pageIndex,Bitmap bitmap,double progress);

/**
* true should be returned to skyepub engine when the cache image for pageIndex exists.
* @param pageIndex
* @return
*/
boolean cacheExist(int pageIndex);
}

SkyEpub 5.2.0 for iOS Released

Reflowable Layout
New functions are added
/** execute custom javascript */
(NSString*)executeJavascript:(NSString*)script;
/** draw Highlight on the top of epub, not under it. */
-(void)setDrawingHighlightOnFront:(BOOL)value;

Fixed Layout
New functions are added.
/** change the window color */
-(void)changeWindowColor:(UIColor*)windowColor;
/** change the background color for each page */
-(void)changeBackgroundColor:(UIColor*)backgroundColor;

/** execute Javascript for left page (when forLeft = YES) or for right page (forLeft = NO). in single page mode (portrait), forLeft should be YES. */
-(NSString*)executeJavascript:(NSString*)script forLeftPage:(BOOL)forLeft;
/** execute Javascript only for left Page. use this in portrait mode. */
-(NSString*)executeJavascript:(NSString*)script;

/** start caching process */
-(void)startCaching;
/** stop caching process */
-(void)stopCaching;

FixedViewControllerDelegate
/** called when caching process for pages is started. @param index int the start index where caching process is started */
-(void)fixedViewController:(FixedViewController*)fvc cachingStarted:(int)index;
/** called when caching process for pages is finished @param index int the start index where caching process is finished **/
-(void)fixedViewController:(FixedViewController*)fvc cachingFinished:(int)index;
/** called when caching for one page is over. @param index the page index which is cached now. @param path the path of cached file. */
-(void)fixedViewController:(FixedViewController*)fvc cached:(int)index image:(UIImage*)image;

FixedViewControllerDataSource
/** if cache file exists for pageIndex, you have to return YES or return NO */
-(BOOL)fixedViewController:(FixedViewController*)fvc cacheExists:(int)pageIndex;

SkyEpub 5.1.1 for Android Released

BookInformation
BookInformation() constructor is newly added, which is the constructor without any argument.

Advanced Demo
The directory for covers is moved from …/covers to …/books
Fixed Bug that Demo app is crashed when the cover path is invalid.
Fixed Bug that Demo app does not install the book when it is saved as wrong or different file name.

SkyEpub 5.1.0 for iOS Released

Reflowable Layout

New function “setGlobalOffset” is added.
-(void)setGlobalOffset:(BOOL)isGlobalOffset;

// when this value is true, all offsets of highlights will be calculated and sent
// based on the character offset of text in chapter rather than the offset of each element.
// the startIndex and endIndex of highlight will be set to 0 (zero)
[rv setGlobalOffset:YES];

SkyProvider
Performance Enhanced.
becomes more fault-tolerant.
displays case-sensitive exception message.

SkyEpub 5.1.0 for Android Released

Reflowable Layout

New function “setGlobalOffset” is added.
public void setGlobalOffset(boolean isGlobalOffset);

// when this value is true, all offsets of highlights will be calculated and sent
// based on the character offset of text in chapter rather than the offset of each element.
// the startIndex and endIndex of highlight will be set to 0 (zero)
rv.setGlobalOffset(true);

Fixed Bug that error occurs when text is selected in Gingerbread devices sometimes.

SkyProvider
Performance Enhanced.
becomes more fault-tolerant.
displays case-sensitive exception message.