Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

NestedScrollingChildHelper

open class NestedScrollingChildHelper
kotlin.Any
   ↳ androidx.core.view.NestedScrollingChildHelper

Helper class for implementing nested scrolling child views compatible with Android platform versions earlier than Android 5.0 Lollipop (API 21).

View subclasses should instantiate a final instance of this class as a field at construction. For each View method that has a matching method signature in this class, delegate the operation to the helper instance in an overridden method implementation. This implements the standard framework policy for nested scrolling.

Views invoking nested scrolling functionality should always do so from the relevant androidx.core.view.ViewCompat, androidx.core.view.ViewGroupCompat or androidx.core.view.ViewParentCompat compatibility shim static methods. This ensures interoperability with nested scrolling views on Android 5.0 Lollipop and newer.

Summary

Public constructors
<init>(@NonNull view: View)

Construct a new helper for a given view.

Public methods
open Boolean
dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean)

Dispatch a nested fling operation to the current nested scrolling parent.

open Boolean
dispatchNestedPreFling(velocityX: Float, velocityY: Float)

Dispatch a nested pre-fling operation to the current nested scrolling parent.

open Boolean
dispatchNestedPreScroll(dx: Int, dy: Int, @Nullable consumed: IntArray?, @Nullable offsetInWindow: IntArray?)

Dispatch one step of a nested pre-scrolling operation to the current nested scrolling parent.

open Boolean
dispatchNestedPreScroll(dx: Int, dy: Int, @Nullable consumed: IntArray?, @Nullable offsetInWindow: IntArray?, type: Int)

Dispatch one step of a nested pre-scrolling operation to the current nested scrolling parent.

open Boolean
dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, @Nullable offsetInWindow: IntArray?)

Dispatch one step of a nested scrolling operation to the current nested scrolling parent.

open Boolean
dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, @Nullable offsetInWindow: IntArray?, type: Int)

Dispatch one step of a nested scrolling operation to the current nested scrolling parent.

open Unit
dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, @Nullable offsetInWindow: IntArray?, type: Int, @Nullable consumed: IntArray?)

Dispatch one step of a nested scrolling operation to the current nested scrolling parent.

open Boolean

Check if this view has a nested scrolling parent view currently receiving events for a nested scroll in progress with the type of touch.

open Boolean

Check if this view has a nested scrolling parent view currently receiving events for a nested scroll in progress with the given type.

open Boolean

Check if nested scrolling is enabled for this view.

open Unit

View subclasses should always call this method on their NestedScrollingChildHelper when detached from a window.

open Unit
onStopNestedScroll(@NonNull child: View)

Called when a nested scrolling child stops its current nested scroll operation.

open Unit

Enable nested scrolling.

open Boolean

Start a new