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

Public Member Functions

void onClick (int x, int y)
 
void onImageClicked (int x, int y, String src)
 
void onLinkClicked (int x, int y, String href)
 
void onLinkForLinearNoClicked (int x, int y, String href)
 
boolean ignoreLink (int x, int y, String href)
 
void onIFrameClicked (int x, int y, String src)
 
void onVideoClicked (int x, int y, String src)
 
void onAudioClicked (int x, int y, String src)
 

Detailed Description

ClickListner is the interface for user single touch in screen.

Author
skytree

Member Function Documentation

boolean com.skytree.epub.ClickListener.ignoreLink ( int  x,
int  y,
String  href 
)

called whenever user taps on the link to ask whether the link should be ignored or not.

Parameters
xx coodination at click point.
yy coodination at click point.
hrefthe href of link,
Returns
if the link should be ignored, return true
void com.skytree.epub.ClickListener.onAudioClicked ( int  x,
int  y,
String  src 
)

called when video tag is clicked

Parameters
xx coodination at click point.
yy coodination at click point.
srcthe source of media
void com.skytree.epub.ClickListener.onClick ( int  x,
int  y 
)

called when user touches some place in screen.

Parameters
xx coodination at click point.
yy coodination at click point.
void com.skytree.epub.ClickListener.onIFrameClicked ( int  x,
int  y,
String  src 
)

called when user taps on iframe

Parameters
xx coodination at click point.
yy coodination at click point.
srcthe source of iframe
void com.skytree.epub.ClickListener.onImageClicked ( int  x,
int  y,
String  src 
)

called when user taps on the image

Parameters
xx coodination at click point.
yy coodination at click point.
srcthe src(url) of image, developer can show the image in ImageView or something by url.
void com.skytree.epub.ClickListener.onLinkClicked ( int  x,
int  y,
String  href 
)

called when user taps on the link

Parameters
xx coodination at click point.
yy coodination at click point.
hrefthe href of link, developer can make the routines to jump to specific position or load another web page by the href.
void com.skytree.epub.ClickListener.onLinkForLinearNoClicked ( int  x,
int  y,
String  href 
)

called when the link to itemRef of which linear property is 'no' is clicked

Parameters
xx coodination at click point.
yy coodination at click point.
srcthe href of link,
void com.skytree.epub.ClickListener.onVideoClicked ( int  x,
int  y,
String  src 
)

called when video tag is clicked

Parameters
xx coodination at click point.
yy coodination at click point.
srcthe source of media

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