SwipeDismissFrameLayout.Callback

Added in 1.1.0

@UiThread
abstract class SwipeDismissFrameLayout.Callback


Implement this callback to act on particular stages of the dismissal.

Summary

Public constructors

Public functions

Unit

Notifies listeners that the dismissal is complete and the view is now off screen.

Unit

Notifies listeners that the swipe gesture has ended without a dismissal.

Unit

Notifies listeners that the view is now being dragged as part of a dismiss gesture.

Public constructors

Callback

Added in 1.1.0
Callback()

Public functions

onDismissed

Added in 1.1.0
fun onDismissed(layout: SwipeDismissFrameLayout!): Unit

Notifies listeners that the dismissal is complete and the view is now off screen.

Parameters
layout: SwipeDismissFrameLayout!

The layout associated with this callback.

onSwipeCanceled

Added in 1.1.0
fun onSwipeCanceled(layout: SwipeDismissFrameLayout!): Unit

Notifies listeners that the swipe gesture has ended without a dismissal.

Parameters
layout: SwipeDismissFrameLayout!

The layout associated with this callback.

onSwipeStarted

Added in 1.1.0
fun onSwipeStarted(layout: SwipeDismissFrameLayout!): Unit

Notifies listeners that the view is now being dragged as part of a dismiss gesture.

Parameters
layout: SwipeDismissFrameLayout!

The layout associated with this callback.