public class SwipeDismissTouchListener
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SwipeDismissTouchListener.DismissCallbacks
The callback interface used by
SwipeDismissTouchListener to inform its client
about a successful dismissal of the view for which it was created. |
| Constructor and Description |
|---|
SwipeDismissTouchListener(View view,
java.lang.Object token,
SwipeDismissTouchListener.DismissCallbacks callbacks)
Constructs a new swipe-to-dismiss touch listener for the given view.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
onTouch(View view,
MotionEvent motionEvent) |
public SwipeDismissTouchListener(View view,
java.lang.Object token,
SwipeDismissTouchListener.DismissCallbacks callbacks)
view - The view to make dismissable.token - An optional token/cookie object to be passed through to the callback.callbacks - The callback to trigger when the user has indicated that she would like to
dismiss this view.