com.foxit.sdk.PDFViewCtrl.IGestureEventListener Interface Reference
Inheritance diagram for com.foxit.sdk.PDFViewCtrl.IGestureEventListener:
com.foxit.sdk.PDFViewCtrl.UIExtensionsManager com.foxit.uiextensions.UIExtensionsManager

Public Member Functions

boolean onDown (MotionEvent e)
 
boolean onFling (MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
 
void onLongPress (MotionEvent e)
 
boolean onScroll (MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
 
void onShowPress (MotionEvent e)
 
boolean onSingleTapUp (MotionEvent e)
 

Detailed Description

The interface for gesture event listener.

Member Function Documentation

◆ onDown()

boolean com.foxit.sdk.PDFViewCtrl.IGestureEventListener.onDown ( MotionEvent  e)

Triggered when PDFViewCtrl#onDown(MotionEvent) is called.

Parameters
eThe down motion event.
Returns
true means the event is consumed.
false means not.

Implemented in com.foxit.uiextensions.UIExtensionsManager.

◆ onFling()

boolean com.foxit.sdk.PDFViewCtrl.IGestureEventListener.onFling ( MotionEvent  e1,
MotionEvent  e2,
float  velocityX,
float  velocityY 
)

Triggered when PDFViewCtrl#onFling(MotionEvent, MotionEvent, float, float) is called.

Parameters
e1The first down motion event.
e2The move motion event.
velocityXThe velocity of this fling measured in pixels per second along the x axis.
velocityYThe velocity of this fling measured in pixels per second along the y axis.
Returns
true means the event is consumed.
false means not.

Implemented in com.foxit.uiextensions.UIExtensionsManager.

◆ onLongPress()

void com.foxit.sdk.PDFViewCtrl.IGestureEventListener.onLongPress ( MotionEvent  e)

Triggered when PDFViewCtrl#onLongPress(MotionEvent) is called.

Parameters
eThe initial on down motion event that started the longpress.

Implemented in com.foxit.uiextensions.UIExtensionsManager.

◆ onScroll()

boolean com.foxit.sdk.PDFViewCtrl.IGestureEventListener.onScroll ( MotionEvent  e1,
MotionEvent  e2,
float  distanceX,
float  distanceY 
)

Triggered when PDFViewCtrl#onScroll(MotionEvent, MotionEvent, float, float) is called.

Parameters
e1The first down motion event that started the scrolling.
e2The move motion event that triggered the current onScroll.
distanceXThe distance along the X axis that has been scrolled since the last call to onScroll.
distanceYThe distance along the Y axis that has been scrolled since the last call to onScroll.
Returns
true means the event is consumed.
false means not.

Implemented in com.foxit.uiextensions.UIExtensionsManager.

◆ onShowPress()

void com.foxit.sdk.PDFViewCtrl.IGestureEventListener.onShowPress ( MotionEvent  e)

Triggered when PDFViewCtrl#onShowPress(MotionEvent) is called.

Parameters
eThe down motion event.

Implemented in com.foxit.uiextensions.UIExtensionsManager.

◆ onSingleTapUp()

boolean com.foxit.sdk.PDFViewCtrl.IGestureEventListener.onSingleTapUp ( MotionEvent  e)

Triggered when PDFViewCtrl#onSingleTapUp(MotionEvent) is called.

Parameters
eThe up motion event that completed the first tap
Returns
true means the event is consumed.
false means not.

Implemented in com.foxit.uiextensions.UIExtensionsManager.