The Glass Explorer Edition SDK is deprecated. This documentation remains as a historical reference.
GestureDetector.TwoFingerScrollListener
Stay organized with collections
Save and categorize content based on your preferences.
This listener receives continuous two finger horizontal scrolling events.
Public Methods |
abstract
boolean
|
|
Public Methods
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
true
if the events were handled
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["Introduced in API level XE12, this listener handles continuous horizontal scrolling performed with two fingers."],["The `onTwoFingerScroll` method is triggered during two-finger scrolling, providing displacement, delta, and velocity data."],["Returning `true` from `onTwoFingerScroll` indicates that the scroll events were successfully handled."]]],[]]