SwipeRefreshLayout.OnChildScrollUpCallback


interface SwipeRefreshLayout.OnChildScrollUpCallback


Classes that wish to override canChildScrollUp method behavior should implement this interface.

Summary

Public functions

Boolean

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

Public functions

canChildScrollUp

Added in 1.0.0
fun canChildScrollUp(parent: SwipeRefreshLayout, child: View?): Boolean

Callback that will be called when 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.

Returns
Boolean

Whether it is possible for the child view of parent layout to scroll up.