SkyEpub SDK for iOS 7
 All Classes Functions Variables Properties
Instance Methods | List of all members
<ReflowableViewControllerDataSource> Protocol Referenceabstract

#import <ReflowableViewController.h>

Inheritance diagram for <ReflowableViewControllerDataSource>:

Instance Methods

(NSMutableArray *) - reflowableViewController:highlightsForChapter:
 
(void) - reflowableViewController:insertHighlight:
 
(void) - reflowableViewController:deleteHighlight:
 
(NSInteger) - reflowableViewController:numberOfPagesForPagingInformation:
 
(void) - reflowableViewController:updateHighlight:
 
(NSString *) - reflowableViewController:scriptForChapter:
 
(NSString *) - reflowableViewController:styleForChapter:
 
(BOOL) - reflowableViewController:isBookmarked:
 
(UIImage *) - bookmarkImage:isBookmarked:
 
(CGRect) - bookmarkRect:isBookmarked:
 

Detailed Description

ReflowableViewControllerDataSource is the protocol containing methods to be implemented to respond to the request from ReflowableViewController.

Method Documentation

- (UIImage*) bookmarkImage: (ReflowableViewController *)  rvc
isBookmarked: (BOOL)  isBookmarked 
optional

should return the bookmarked image for rendering

- (CGRect) bookmarkRect: (ReflowableViewController *)  rvc
isBookmarked: (BOOL)  isBookmarked 
optional

should return the CGRect of the bookmarked image for rendering

- (void) reflowableViewController: (ReflowableViewController *)  rvc
deleteHighlight: (Highlight *)  highlight 
optional

called when certain highlight should be deleted in the case like merging highlights.

- (NSMutableArray*) reflowableViewController: (ReflowableViewController *)  rvc
highlightsForChapter: (NSInteger)  chapterIndex 
optional

should return NSMutableArray holding highlight objects for the given chapter index.

- (void) reflowableViewController: (ReflowableViewController *)  rvc
insertHighlight: (Highlight *)  highlight 
optional

called when new highlight object must be inserted.

- (BOOL) reflowableViewController: (ReflowableViewController *)  rvc
isBookmarked: (PageInformation *)  pageInformation 
optional

should tell the engine whether a given pagePositionInBook value is bookmarked or not

- (NSInteger) reflowableViewController: (ReflowableViewController *)  rvc
numberOfPagesForPagingInformation: (PagingInformation *)  pagingInformation 
optional

should return the number of pages for specific PagingInformation in global pagination mode

- (NSString*) reflowableViewController: (ReflowableViewController *)  rvc
scriptForChapter: (NSInteger)  chapterIndex 
optional

Javascript source for chapterIndex can be passed to the engine if you like to implement some custom behaviors.

- (NSString*) reflowableViewController: (ReflowableViewController *)  rvc
styleForChapter: (NSInteger)  chapterIndex 
optional

CSS source for chapterIndex can be passed to the engine if you like to implement some custom behaviors.

- (void) reflowableViewController: (ReflowableViewController *)  rvc
updateHighlight: (Highlight *)  highlight 
optional

called when certain highlight should be updated in the case like changing color


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