# SwipeDismissFrameLayout.Callback

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:wear:28.0.0-alpha1  
Summary:[Ctors](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout.Callback#pubctors)\|[Methods](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout.Callback#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout.Callback#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout.Callback#)  

# SwipeDismissFrameLayout.Callback

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static

abstract
class
SwipeDismissFrameLayout.Callback
`  
`

extends Object


``


`

|---|--------------------------------------------------------------|
| java.lang.Object                                                ||
| ↳ | android.support.wear.widget.SwipeDismissFrameLayout.Callback |

<br />

*** ** * ** ***

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

## Summary

|                                                                                ### Public constructors                                                                                 ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[SwipeDismissFrameLayout.Callback](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout.Callback#SwipeDismissFrameLayout.Callback())`() ` |

|                                                                                                                                                                                                       ### Public methods                                                                                                                                                                                                       ||
|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[onDismissed](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout.Callback#onDismissed(android.support.wear.widget.SwipeDismissFrameLayout))`(`[SwipeDismissFrameLayout](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout)` layout) ` Notifies listeners the dismissal is complete and the view now off screen.                 |
| ` void` | ` `[onSwipeCanceled](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout.Callback#onSwipeCanceled(android.support.wear.widget.SwipeDismissFrameLayout))`(`[SwipeDismissFrameLayout](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout)` layout) ` Notifies listeners that the swipe gesture has ended without a dismissal.          |
| ` void` | ` `[onSwipeStarted](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout.Callback#onSwipeStarted(android.support.wear.widget.SwipeDismissFrameLayout))`(`[SwipeDismissFrameLayout](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout)` layout) ` Notifies listeners that the view is now being dragged as part of a dismiss gesture. |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout.Callback#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public constructors

### SwipeDismissFrameLayout.Callback

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
SwipeDismissFrameLayout.Callback ()
```

<br />

<br />

## Public methods

### onDismissed

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onDismissed (SwipeDismissFrameLayout layout)
```

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

<br />

|                                      Parameters                                       ||
|----------|-----------------------------------------------------------------------------|
| `layout` | `SwipeDismissFrameLayout`: The layout associated with this callback. <br /> |

### onSwipeCanceled

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onSwipeCanceled (SwipeDismissFrameLayout layout)
```

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

<br />

|                                      Parameters                                       ||
|----------|-----------------------------------------------------------------------------|
| `layout` | `SwipeDismissFrameLayout`: The layout associated with this callback. <br /> |

### onSwipeStarted

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onSwipeStarted (SwipeDismissFrameLayout layout)
```

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

<br />

|                                      Parameters                                       ||
|----------|-----------------------------------------------------------------------------|
| `layout` | `SwipeDismissFrameLayout`: The layout associated with this callback. <br /> |

-

  ## Interfaces

  - [CircularProgressLayout.OnTimerFinishedListener](https://developer.android.com/reference/android/support/wear/widget/CircularProgressLayout.OnTimerFinishedListener)
-

  ## Classes

  - [BoxInsetLayout](https://developer.android.com/reference/android/support/wear/widget/BoxInsetLayout)
  - [BoxInsetLayout.LayoutParams](https://developer.android.com/reference/android/support/wear/widget/BoxInsetLayout.LayoutParams)
  - [CircularProgressLayout](https://developer.android.com/reference/android/support/wear/widget/CircularProgressLayout)
  - [CurvingLayoutCallback](https://developer.android.com/reference/android/support/wear/widget/CurvingLayoutCallback)
  - [RoundedDrawable](https://developer.android.com/reference/android/support/wear/widget/RoundedDrawable)
  - [SwipeDismissFrameLayout](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout)
  - [SwipeDismissFrameLayout.Callback](https://developer.android.com/reference/android/support/wear/widget/SwipeDismissFrameLayout.Callback)
  - [WearableLinearLayoutManager](https://developer.android.com/reference/android/support/wear/widget/WearableLinearLayoutManager)
  - [WearableLinearLayoutManager.LayoutCallback](https://developer.android.com/reference/android/support/wear/widget/WearableLinearLayoutManager.LayoutCallback)
  - [WearableRecyclerView](https://developer.android.com/reference/android/support/wear/widget/WearableRecyclerView)