DismissibleFrameLayout.Callback

public static abstract class DismissibleFrameLayout.Callback
extends Object

java.lang.Object
   ↳ androidx.wear.widget.DismissibleFrameLayout.Callback


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

Summary

Public constructors

Callback()

Public methods

void onDismissCanceled(DismissibleFrameLayout layout)

Notifies listeners the dismissal is canceled.

void onDismissFinished(DismissibleFrameLayout layout)

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

void onDismissStarted(DismissibleFrameLayout layout)

Notifies listeners the dismissal is started.

Inherited methods

Public constructors

Callback

public Callback ()

Public methods

onDismissCanceled

public void onDismissCanceled (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
layout DismissibleFrameLayout: The layout associated with this callback.

onDismissFinished

public void onDismissFinished (DismissibleFrameLayout layout)

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

Parameters
layout DismissibleFrameLayout: The layout associated with this callback.

onDismissStarted

public void onDismissStarted (DismissibleFrameLayout layout)

Notifies listeners the dismissal is started.

Parameters
layout DismissibleFrameLayout: The layout associated with this callback.