DismissibleFrameLayout.Callback

Added in 1.2.0

@UiThread
abstract class DismissibleFrameLayout.Callback


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

Summary

Public constructors

Public functions

Unit

Notifies listeners the dismissal is canceled.

Unit

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

Unit

Notifies listeners the dismissal is started.

Public constructors

Callback

Added in 1.2.0
Callback()

Public functions

onDismissCanceled

Added in 1.2.0
fun onDismissCanceled(layout: DismissibleFrameLayout): Unit

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
layout: DismissibleFrameLayout

The layout associated with this callback.

onDismissFinished

Added in 1.2.0
fun onDismissFinished(layout: DismissibleFrameLayout): Unit

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

Parameters
layout: DismissibleFrameLayout

The layout associated with this callback.

onDismissStarted

Added in 1.2.0
fun onDismissStarted(layout: DismissibleFrameLayout): Unit

Notifies listeners the dismissal is started.

Parameters
layout: DismissibleFrameLayout

The layout associated with this callback.