DismissibleFrameLayout.Callback

public abstract class DismissibleFrameLayout.Callback


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

Summary

Public methods

@NonNull void

Notifies listeners the dismissal is canceled.

@NonNull void

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

@NonNull void

Notifies listeners the dismissal is started.

Public methods

onDismissCanceled

@NonNull
public void onDismissCanceled(@NonNull DismissibleFrameLayout layout)

Notifies listeners the dismissal is canceled. Note, only valid on swipe-to-dismiss gesture. Dismissal triggered by back button press can not be canceled.

Parameters
@NonNull DismissibleFrameLayout layout

The layout associated with this callback.

onDismissFinished

@NonNull
public void onDismissFinished(@NonNull DismissibleFrameLayout layout)

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

Parameters
@NonNull DismissibleFrameLayout layout

The layout associated with this callback.

onDismissStarted

@NonNull
public void onDismissStarted(@NonNull DismissibleFrameLayout layout)

Notifies listeners the dismissal is started.

Parameters
@NonNull DismissibleFrameLayout layout

The layout associated with this callback.