Google is committed to advancing racial equity for Black communities. See how.

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
canChildScrollUp(@NonNull parent: SwipeRefreshLayout, @Nullable child: View?)

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(
    @NonNull parent: SwipeRefreshLayout,
    @Nullable 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 View?: The child view of SwipeRefreshLayout.
Return
Boolean Whether it is possible for the child view of parent layout to scroll up.