Share via


MotionEvent.ButtonPrimary Field

Definition

Caution

This constant will be removed in the future version. Use Android.Views.MotionEventButtonState enum directly instead of this field.

Button constant: Primary button (left mouse button).

[Android.Runtime.Register("BUTTON_PRIMARY")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.MotionEventButtonState enum directly instead of this field.", true)]
public const Android.Views.MotionEventButtonState ButtonPrimary = 1;
[<Android.Runtime.Register("BUTTON_PRIMARY")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.MotionEventButtonState enum directly instead of this field.", true)>]
val mutable ButtonPrimary : Android.Views.MotionEventButtonState

Field Value

Value = 1

Implements

Attributes

Remarks

Button constant: Primary button (left mouse button).

This button constant is not set in response to simple touches with a finger or stylus tip. The user must actually push a button.

Java documentation for android.view.MotionEvent.BUTTON_PRIMARY.

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

See also