Google 致力于为黑人社区推动种族平等。查看具体举措

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 onDismissStarted(DismissibleFrameLayout layout)

Notifies listeners the dismissal is started.

void onDismissed(DismissibleFrameLayout layout)

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

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.

onDismissStarted

public void onDismissStarted (DismissibleFrameLayout layout)

Notifies listeners the dismissal is started.

Parameters
layout DismissibleFrameLayout: The layout associated with this callback.

onDismissed

public void onDismissed (DismissibleFrameLayout layout)

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

Parameters
layout DismissibleFrameLayout: The layout associated with this callback.