InterceptTouchEvent
Components should implement an event of this type in order to intercept Android touch events. The method is equivalent to the Android method onInterceptTouchEvent - implementations should return true if they intercepted the event and wish to receive subsequent events, and false otherwise. An example of the correct usage is:
{@}OnEvent(InterceptTouchEvent.class)
static boolean onInterceptTouchEvent(
{@}FromEvent View view,
{@}FromEvent MotionEvent motionEvent,
{@}Param Param someParam,
{@}Prop Prop someProp) {
return shouldInterceptEvent(someParam, someProp);
}
</pre>
Content copied to clipboard