The Google Glass Explorer Edition SDK is deprecated. This documentation is no longer being maintained. If you're interested in developing Glass solutions for enterprise clients, visit the Google Glass Enterprise Edition developer documentation.


Stay organized with collections Save and categorize content based on your preferences.
Added in API level XE12

This listener receives continuous two finger horizontal scrolling events.

Public Methods
abstract boolean
onTwoFingerScroll(float displacement, float delta, float velocity)

Public Methods

Added in API level XE12

public abstract boolean onTwoFingerScroll (float displacement, float delta, float velocity)

Called while the user is scrolling with two fingers.

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
  • true if the events were handled