DismissibleFrameLayout.Callback

Added in 1.2.0

@UiThread
public abstract class DismissibleFrameLayout.Callback


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

Summary

Public constructors

Public methods

void

Notifies listeners the dismissal is canceled.

void

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

void

Notifies listeners the dismissal is started.

Public constructors

Callback

Added in 1.2.0
public Callback()

Public methods

onDismissCanceled

Added in 1.2.0
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

Added in 1.2.0
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

Added in 1.2.0
public void onDismissStarted(@NonNull DismissibleFrameLayout layout)

Notifies listeners the dismissal is started.

Parameters
@NonNull DismissibleFrameLayout layout

The layout associated with this callback.