Udostępnij za pośrednictwem


View.SetScrollCaptureCallback(IScrollCaptureCallback) Method

Definition

Sets the callback to receive scroll capture requests.

[Android.Runtime.Register("setScrollCaptureCallback", "(Landroid/view/ScrollCaptureCallback;)V", "", ApiSince=31)]
public void SetScrollCaptureCallback (Android.Views.IScrollCaptureCallback? callback);
[<Android.Runtime.Register("setScrollCaptureCallback", "(Landroid/view/ScrollCaptureCallback;)V", "", ApiSince=31)>]
member this.SetScrollCaptureCallback : Android.Views.IScrollCaptureCallback -> unit

Parameters

callback
IScrollCaptureCallback

the new callback to assign

Attributes

Remarks

Sets the callback to receive scroll capture requests. This component is the adapter between the scroll capture API and application UI code. If no callback is set, the system may provide an implementation. Any value provided here will take precedence over a system version.

This view will be ignored when #SCROLL_CAPTURE_HINT_EXCLUDE is set in its #setScrollCaptureHint(int) scrollCaptureHint, regardless whether a callback has been set.

It is recommended to set the scroll capture hint #SCROLL_CAPTURE_HINT_INCLUDE when setting a custom callback to help ensure it is selected as the target.

Java documentation for android.view.View.setScrollCaptureCallback(android.view.ScrollCaptureCallback).

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