Freigeben über


View.RequestUnbufferedDispatch Method

Definition

Overloads

RequestUnbufferedDispatch(MotionEvent)

Request unbuffered dispatch of the given stream of MotionEvents to this View.

RequestUnbufferedDispatch(Int32)

Request unbuffered dispatch of the given event source class to this view.

RequestUnbufferedDispatch(MotionEvent)

Request unbuffered dispatch of the given stream of MotionEvents to this View.

[Android.Runtime.Register("requestUnbufferedDispatch", "(Landroid/view/MotionEvent;)V", "")]
public void RequestUnbufferedDispatch (Android.Views.MotionEvent? e);
[<Android.Runtime.Register("requestUnbufferedDispatch", "(Landroid/view/MotionEvent;)V", "")>]
member this.RequestUnbufferedDispatch : Android.Views.MotionEvent -> unit

Parameters

Attributes

Remarks

Request unbuffered dispatch of the given stream of MotionEvents to this View.

Until this View receives a corresponding MotionEvent#ACTION_UP, ask that the input system not batch MotionEvents but instead deliver them as soon as they're available. This method should only be called for touch events.

<p class="note">This API is not intended for most applications. Buffered dispatch provides many of benefits, and just requesting unbuffered dispatch on most MotionEvent streams will not improve your input latency. Side effects include: increased latency, jittery scrolls and inability to take advantage of system resampling. Talk to your input professional to see if #requestUnbufferedDispatch(MotionEvent) is right for you.</p>

To receive unbuffered events for arbitrary input device source classes, use #requestUnbufferedDispatch(int),

Java documentation for android.view.View.requestUnbufferedDispatch(android.view.MotionEvent).

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

RequestUnbufferedDispatch(Int32)

Request unbuffered dispatch of the given event source class to this view.

[Android.Runtime.Register("requestUnbufferedDispatch", "(I)V", "", ApiSince=30)]
public void RequestUnbufferedDispatch (int source);
[<Android.Runtime.Register("requestUnbufferedDispatch", "(I)V", "", ApiSince=30)>]
member this.RequestUnbufferedDispatch : int -> unit

Parameters

source
Int32

The combined input source class to request unbuffered dispatch for. All events coming from these source classes will not be buffered. Set to InputDevice#SOURCE_CLASS_NONE in order to return to default behaviour.

Attributes

Remarks

Request unbuffered dispatch of the given event source class to this view. This is similar to View#requestUnbufferedDispatch(MotionEvent), but does not automatically terminate, and allows the specification of arbitrary input source classes.

Prior to android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE, calling this method will not result in any behavioral changes when this View is not attached to a window.

Java documentation for android.view.View.requestUnbufferedDispatch(int).

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