Partager via


MotionEvent.PointerCoords.IsResampled Property

Definition

Returns true if these pointer coordinates were generated by resampling, rather than from an actual input event from the device at this time.

public bool IsResampled { [Android.Runtime.Register("isResampled", "()Z", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("isResampled", "()Z", "", ApiSince=35)>]
member this.IsResampled : bool

Property Value

Attributes

Remarks

Returns true if these pointer coordinates were generated by resampling, rather than from an actual input event from the device at this time.

Resampling extrapolates or interpolates touch coordinates reported by the input device to better align them with the refresh rate of the display, resulting in smoother movements, in particular for scrolling. Resampled coordinates are always added to batches, so a motion event will always contain at least one sample that is an original event from the input device (i.e. for which this method will return false).

Resampling does not occur if unbuffered dispatch has been requested, or if it has been disabled by the manufacturer (for example, on hardware that already synchronizes its touch events and display frames).

Java documentation for android.view.MotionEvent.PointerCoords.isResampled().

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