public static interface Component.TouchEventListener
This callback will be invoked before the component receives the touch event. The granularity of touch events is smaller than click events.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
onTouchEvent(Component component,
TouchEvent event) |
Processes a touch event dispatched to a component.
|
boolean onTouchEvent(Component component, TouchEvent event)
The listener responds to a touch event before the target component receives the event.
component - Indicates the component to which the touch event is dispatched.event - Indicates all information about the touch event.true if the listener has processed the event; returns false otherwise.