# SwipeRefreshLayout.OnChildScrollUpCallback

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout.OnChildScrollUpCallback "View this page in Java")

<br />

```
interface SwipeRefreshLayout.OnChildScrollUpCallback
```

<br />

*** ** * ** ***

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

## Summary

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [canChildScrollUp](https://developer.android.com/reference/kotlin/androidx/swiperefreshlayout/widget/SwipeRefreshLayout.OnChildScrollUpCallback#canChildScrollUp(androidx.swiperefreshlayout.widget.SwipeRefreshLayout,android.view.View))`(parent: `[SwipeRefreshLayout](https://developer.android.com/reference/kotlin/androidx/swiperefreshlayout/widget/SwipeRefreshLayout)`, child: `[View](https://developer.android.com/reference/android/view/View.html)`?)` Callback that will be called when[canChildScrollUp](https://developer.android.com/reference/kotlin/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#canChildScrollUp())method is called to allow the implementer to override its behavior. |

## Public functions

### canChildScrollUp

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

```
fun canChildScrollUp(parent: SwipeRefreshLayout, child: View?): Boolean
```

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

|                                                              Parameters                                                              |
|--------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------|
| `parent: `[SwipeRefreshLayout](https://developer.android.com/reference/kotlin/androidx/swiperefreshlayout/widget/SwipeRefreshLayout) | SwipeRefreshLayout that this callback is overriding. |
| `child: `[View](https://developer.android.com/reference/android/view/View.html)`?`                                                   | The child view of SwipeRefreshLayout.                |

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether it is possible for the child view of parent layout to scroll up. |