SwipeDismissTouchListener

constructor(view: View, token: Any, callbacks: SwipeDismissTouchListener.DismissCallbacks)

Constructs a new swipe-to-dismiss touch listener for the given view with horizontal-only dismissal.

Parameters

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.


constructor(view: View, token: Any, callbacks: SwipeDismissTouchListener.DismissCallbacks, verticalDismissDirection: SwipeDismissTouchListener.VerticalDismissDirection)

Constructs a new swipe-to-dismiss touch listener for the given view.

Parameters

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.

verticalDismissDirection

The vertical direction that should also trigger a dismiss, or NONE for horizontal-only.