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 | |
---|---|
<init>() Implement this callback to act on particular stages of the dismissal. |
Public methods | |
---|---|
open Unit |
onDismissed(layout: SwipeDismissFrameLayout!) Notifies listeners that the dismissal is complete and the view is now off screen. |
open Unit |
onSwipeCanceled(layout: SwipeDismissFrameLayout!) Notifies listeners that the swipe gesture has ended without a dismissal. |
open Unit |
onSwipeStarted(layout: SwipeDismissFrameLayout!) 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 that the dismissal is complete and the view is 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. |