onNestedScrollAccepted

open fun onNestedScrollAccepted(@NonNull child: View, @NonNull target: View, axes: Int, type: Int)(source)

React to the successful claiming of a nested scroll operation.

This method will be called after onStartNestedScroll returns true. It offers an opportunity for the view and its superclasses to perform initial configuration for the nested scroll. Implementations of this method should always call their superclass's implementation of this method if one is present.

Parameters

child

Direct child of this ViewParent containing target

target

View that initiated the nested scroll

axes

Flags consisting of SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_VERTICAL or both

type

the type of input which cause this scroll event

See also


open fun onNestedScrollAccepted(@NonNull child: View, @NonNull target: View, axes: Int)(source)