Register now for Android Dev Summit 2019!

Callback

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

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

Summary

Public constructors

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

Public methods

open Unit

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

open Unit

Notifies listeners that the swipe gesture has ended without a dismissal.

open Unit

Notifies listeners that the view is now being dragged as part of a dismiss gesture.

Public constructors

<init>

Callback()

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

Public methods

onDismissed

open fun onDismissed(layout: SwipeDismissFrameLayout!): Unit

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

Parameters
layout SwipeDismissFrameLayout!: The layout associated with this callback.

onSwipeCanceled

open fun onSwipeCanceled(layout: SwipeDismissFrameLayout!): Unit

Notifies listeners that the swipe gesture has ended without a dismissal.

Parameters
layout SwipeDismissFrameLayout!: The layout associated with this callback.

onSwipeStarted

open fun onSwipeStarted(layout: SwipeDismissFrameLayout!): Unit

Notifies listeners that the view is now being dragged as part of a dismiss gesture.

Parameters
layout SwipeDismissFrameLayout!: The layout associated with this callback.