public static interface SingleCharWidgetApi.OnSingleTapGestureListener
Modifier and Type | Method and Description |
---|---|
boolean |
onSingleTapGesture(SingleCharWidgetApi w,
float x,
float y)
Called when a single tap gesture is detected.
|
boolean onSingleTapGesture(SingleCharWidgetApi w, float x, float y)
true
to indicate that it handled the event.
If this callback returns false
, then the single
tap gesture is considered by the widget as a genuine dot and
passed to the handwriting recognizer.
This callback is called from a native thread, not from the UI thread. You must not call any widget methods from this callback, or the widget will enter a deadlock state.
Most Android UI methods require to be called from the UI thread. You cannot call such methods directly from this callback and must post messages to the UI thread instead.
w
- Widget that has detected the gesture.x
- X position of the single tap in widget coordinates.y
- Y position of the single tap in widget coordinates.true
if single tap event is handled,
false
otherwise (indicates a handwritten dot).