Android 12 Developer Preview is here! Try it out, and give us your feedback!

Callback

@UiThread abstract class Callback
kotlin.Any
   ↳ androidx.wear.widget.DismissibleFrameLayout.Callback

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

Summary

Public constructors

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

Public methods
open Unit

Notifies listeners the dismissal is canceled.

open Unit

Notifies listeners the dismissal is started.

open Unit

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

Public constructors

<init>

Callback()

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

Public methods

onDismissCanceled

open fun onDismissCanceled(@NonNull 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.

onDismissStarted

open fun onDismissStarted(@NonNull layout: DismissibleFrameLayout): Unit

Notifies listeners the dismissal is started.

Parameters
layout DismissibleFrameLayout: The layout associated with this callback.

onDismissed

open fun onDismissed(@NonNull layout: DismissibleFrameLayout): Unit

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

Parameters
layout DismissibleFrameLayout: The layout associated with this callback.