Page Summary
-
GestureDetector.TwoFingerScrollListeneris a listener added in API level XE12 that receives continuous two-finger horizontal scrolling events. -
The listener has a public method
onTwoFingerScrollwhich is called while the user is scrolling with two fingers. -
The
onTwoFingerScrollmethod provides parameters for displacement, delta, and velocity of the scroll event. -
The
onTwoFingerScrollmethod returnstrueif the events were handled.
This listener receives continuous two finger horizontal scrolling events.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract boolean |
onTwoFingerScroll(float displacement, float delta, float velocity)
|
||||||||||
Public Methods
public abstract boolean onTwoFingerScroll (float displacement, float delta, float velocity)
Called while the user is scrolling with two fingers.
Parameters
| displacement | average distance between scroll state entering x value |
|---|---|
| delta | average delta between two consecutive x motion events |
| velocity | average velocity of current x motion event |
Returns
trueif the events were handled