added in version 26.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1

NestedScrollingChild2

public interface NestedScrollingChild2
implements NestedScrollingChild

android.support.v4.view.NestedScrollingChild2
Known Indirect Subclasses


This interface should be implemented by View subclasses that wish to support dispatching nested scrolling operations to a cooperating parent ViewGroup.

Classes implementing this interface should create a final instance of a NestedScrollingChildHelper as a field and delegate any View methods to the NestedScrollingChildHelper methods of the same signature.

Views invoking nested scrolling functionality should always do so from the relevant ViewCompat, ViewGroupCompat or ViewParentCompat compatibility shim static methods. This ensures interoperability with nested scrolling views on all versions of Android.

Summary

Public methods

abstract boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow, int type)

Dispatch one step of a nested scroll in progress before this view consumes any portion of it.

abstract boolean dispatchNestedScroll(int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int[] offsetInWindow, int type)

Dispatch one step of a nested scroll in progress.

abstract boolean hasNestedScrollingParent(int type)

Returns true if this view has a nested scrolling parent for the given input type.

abstract boolean startNestedScroll(int axes, int type)

Begin a nestable scroll operation along the given axes, for the given input type.

abstract void stopNestedScroll(int type)

Stop a nested scroll in progress for the given input type.

Inherited methods

From interface android.support.v4.view.NestedScrollingChild