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.

GestureDetector.BaseListener

Added in API level XE12

Receives detection results. This listener receives discrete gestures: TAP, LONG_PRESS SWIPE_UP, SWIPE_LEFT, SWIPE_RIGHT, SWIPE_DOWN

Public Methods
abstract boolean
onGesture(Gesture gesture)

Public Methods

Added in API level XE12

public abstract boolean onGesture (Gesture gesture)

Called when a gesture was recognized.

Only one gesture will be recognized per event sequence.

Parameters
gesture the detected gesture
Returns
  • true if the gesture was handled