View.OnScrollCaptureSearch(Rect, Point, IConsumer) Method

Definition

Called when scroll capture is requested, to search for appropriate content to scroll.

[Android.Runtime.Register("onScrollCaptureSearch", "(Landroid/graphics/Rect;Landroid/graphics/Point;Ljava/util/function/Consumer;)V", "GetOnScrollCaptureSearch_Landroid_graphics_Rect_Landroid_graphics_Point_Ljava_util_function_Consumer_Handler", ApiSince=31)]
public virtual void OnScrollCaptureSearch (Android.Graphics.Rect localVisibleRect, Android.Graphics.Point windowOffset, Java.Util.Functions.IConsumer targets);
[<Android.Runtime.Register("onScrollCaptureSearch", "(Landroid/graphics/Rect;Landroid/graphics/Point;Ljava/util/function/Consumer;)V", "GetOnScrollCaptureSearch_Landroid_graphics_Rect_Landroid_graphics_Point_Ljava_util_function_Consumer_Handler", ApiSince=31)>]
abstract member OnScrollCaptureSearch : Android.Graphics.Rect * Android.Graphics.Point * Java.Util.Functions.IConsumer -> unit
override this.OnScrollCaptureSearch : Android.Graphics.Rect * Android.Graphics.Point * Java.Util.Functions.IConsumer -> unit

Parameters

localVisibleRect
Rect

the local visible rect of this view

windowOffset
Point

the offset of localVisibleRect within the window

targets
IConsumer

accepts potential scroll capture targets; Consumer#accept results.accept may be called zero or more times on the calling thread before onScrollCaptureSearch returns

Attributes

Remarks

Called when scroll capture is requested, to search for appropriate content to scroll. If applicable, this view adds itself to the provided list for consideration, subject to the flags set by #setScrollCaptureHint.

Java documentation for android.view.View.onScrollCaptureSearch(android.graphics.Rect, android.graphics.Point, java.util.function.Consumer<android.view.ScrollCaptureTarget>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to