Share via


MotionEvent.FlagCanceled Field

Definition

This flag is only set for events with #ACTION_POINTER_UP and #ACTION_CANCEL.

[Android.Runtime.Register("FLAG_CANCELED", ApiSince=33)]
public const int FlagCanceled = 32;
[<Android.Runtime.Register("FLAG_CANCELED", ApiSince=33)>]
val mutable FlagCanceled : int

Field Value

Value = 32

Implements

Attributes

Remarks

This flag is only set for events with #ACTION_POINTER_UP and #ACTION_CANCEL. It indicates that the pointer going up was an unintentional user touch. When FLAG_CANCELED is set, the typical actions that occur in response for a pointer going up (such as click handlers, end of drawing) should be aborted. This flag is typically set when the user was accidentally touching the screen, such as by gripping the device, or placing the palm on the screen.

Java documentation for android.view.MotionEvent.FLAG_CANCELED.

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