GestureDetector.IOnGestureListener.OnShowPress(MotionEvent) Method

Definition

The user has performed a down MotionEvent and not performed a move or up yet.

[Android.Runtime.Register("onShowPress", "(Landroid/view/MotionEvent;)V", "GetOnShowPress_Landroid_view_MotionEvent_Handler:Android.Views.GestureDetector/IOnGestureListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnShowPress (Android.Views.MotionEvent e);
[<Android.Runtime.Register("onShowPress", "(Landroid/view/MotionEvent;)V", "GetOnShowPress_Landroid_view_MotionEvent_Handler:Android.Views.GestureDetector/IOnGestureListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnShowPress : Android.Views.MotionEvent -> unit

Parameters

e
MotionEvent

The down motion event

Attributes

Remarks

The user has performed a down MotionEvent and not performed a move or up yet. This event is commonly used to provide visual feedback to the user to let them know that their action has been recognized i.e. highlight an element.

Java documentation for android.view.GestureDetector.OnGestureListener.onShowPress(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