Package com.batch.android.messaging.view
Interface DelegatedTouchEventViewGroup.Delegate
-
- All Known Implementing Classes:
ModalContentPanGestureDetector
- Enclosing interface:
- DelegatedTouchEventViewGroup
public static interface DelegatedTouchEventViewGroup.Delegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanonInterceptTouchEvent(android.view.MotionEvent ev, DelegatedTouchEventViewGroup source)DelegatedViewGroup.onInterceptTouchEvent(MotionEvent)booleanonTouchEvent(android.view.MotionEvent event, DelegatedTouchEventViewGroup source, boolean wantsCancellationOnInterception)DelegatedView.onTouchEvent(MotionEvent)
-
-
-
Method Detail
-
onInterceptTouchEvent
boolean onInterceptTouchEvent(android.view.MotionEvent ev, DelegatedTouchEventViewGroup source)DelegatedViewGroup.onInterceptTouchEvent(MotionEvent)Works exactly like the original method, this completly takes over it so make sure you implement it correctly
-
onTouchEvent
boolean onTouchEvent(android.view.MotionEvent event, DelegatedTouchEventViewGroup source, boolean wantsCancellationOnInterception)DelegatedView.onTouchEvent(MotionEvent)Works exactly like the original method, this completly takes over it so make sure you implement it correctly
Views can ask to receive a "fake" cancellation touch event when the delegate starts acting on touches (like responding to a pan action) This is useful if your view itself handles a touch event (like a tap) and not a subview as this case is NOT handled by onInterceptTouchEvent
-
-