Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

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