OnChildScrollUpCallback

interface OnChildScrollUpCallback
androidx.swiperefreshlayout.widget.SwipeRefreshLayout.OnChildScrollUpCallback

Classes that wish to override SwipeRefreshLayout#canChildScrollUp() method behavior should implement this interface.

Summary

Public methods
abstract Boolean

Callback that will be called when SwipeRefreshLayout#canChildScrollUp() method is called to allow the implementer to override its behavior.

Public methods

canChildScrollUp

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

Callback that will be called when SwipeRefreshLayout#canChildScrollUp() method is called to allow the implementer to override its behavior.

Parameters
parent SwipeRefreshLayout: SwipeRefreshLayout that this callback is overriding.
child SwipeRefreshLayout: The child view of SwipeRefreshLayout.
Return
Boolean: Whether it is possible for the child view of parent layout to scroll up.