# SwipeRefreshLayout.OnChildScrollUpCallback

Artifact: [androidx.swiperefreshlayout:swiperefreshlayout](https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout) [View Source](https://cs.android.com/search?q=file:androidx/swiperefreshlayout/widget/SwipeRefreshLayout.java+class:androidx.swiperefreshlayout.widget.SwipeRefreshLayout.OnChildScrollUpCallback) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout#1.0.0)

*** ** * ** ***


```
public interface SwipeRefreshLayout.OnChildScrollUpCallback
```

<br />

*** ** * ** ***

Classes that wish to override `https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#canChildScrollUp()` method behavior should implement this interface.

## Summary

| ### Public methods |
|---|---|
| `abstract boolean` | `https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout.OnChildScrollUpCallback#canChildScrollUp(androidx.swiperefreshlayout.widget.SwipeRefreshLayout,android.view.View)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout parent, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/View.html child)` Callback that will be called when `https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#canChildScrollUp()` method is called to allow the implementer to override its behavior. |

## Public methods

### canChildScrollUp

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout#1.0.0)

```
abstract boolean canChildScrollUp(@NonNull SwipeRefreshLayout parent, @Nullable View child)
```

Callback that will be called when `https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#canChildScrollUp()` method is called to allow the implementer to override its behavior.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout parent` | SwipeRefreshLayout that this callback is overriding. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/View.html child` | The child view of SwipeRefreshLayout. |

| Returns |
|---|---|
| `boolean` | Whether it is possible for the child view of parent layout to scroll up. |