SwipeDismissFrameLayout.Callback

@UiThread public abstract class SwipeDismissFrameLayout.Callback


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

Summary

Public methods

@NonNull void

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

@NonNull void

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

@NonNull void

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

Public methods

onDismissed

@NonNull
public void onDismissed(@NonNull SwipeDismissFrameLayout layout)

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

Parameters
@NonNull SwipeDismissFrameLayout layout

The layout associated with this callback.

onSwipeCanceled

@NonNull
public void onSwipeCanceled(@NonNull SwipeDismissFrameLayout layout)

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

Parameters
@NonNull SwipeDismissFrameLayout layout

The layout associated with this callback.

onSwipeStarted

@NonNull
public void onSwipeStarted(@NonNull SwipeDismissFrameLayout layout)

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

Parameters
@NonNull SwipeDismissFrameLayout layout

The layout associated with this callback.