Android Guides | Samples

Android.Views.GestureDetector.IOnGestureListener

The listener that is used to notify when gestures occur.

See Also: GestureDetector+IOnGestureListener

Syntax

[Android.Runtime.Register("android/view/GestureDetector$OnGestureListener", "", "Android.Views.GestureDetector/IOnGestureListenerInvoker")]
public interface GestureDetector.IOnGestureListener : IJavaObject, IDisposable

Remarks

The listener that is used to notify when gestures occur. If you want to listen for all the different gestures then implement this interface. If you only want to listen for a subset it might be easier to extend GestureDetector+SimpleOnGestureListener.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Views.GestureDetector.IOnGestureListener are listed below.

Public Methods

OnDown(MotionEvent) : Boolean
Notified when a tap occurs with the down MotionEvent that triggered it.
OnFling(MotionEvent, MotionEvent, Single, Single) : Boolean
Notified of a fling event when it occurs with the initial on down MotionEvent and the matching up MotionEvent.
OnLongPress(MotionEvent)
Notified when a long press occurs with the initial on down MotionEvent that trigged it.
OnScroll(MotionEvent, MotionEvent, Single, Single) : Boolean
Notified when a scroll occurs with the initial on down MotionEvent and the current move MotionEvent.
OnShowPress(MotionEvent)
The user has performed a down MotionEvent and not performed a move or up yet.
OnSingleTapUp(MotionEvent) : Boolean
Notified when a tap occurs with the up MotionEvent that triggered it.