Android Guides | Samples

Android.Views.GestureDetector.SimpleOnGestureListener Class

A convenience class to extend when you only want to listen for a subset of all the gestures.

See Also: GestureDetector+SimpleOnGestureListener

Syntax

[Android.Runtime.Register("android/view/GestureDetector$SimpleOnGestureListener", DoNotGenerateAcw=true)]
public class GestureDetector.SimpleOnGestureListener : Object, GestureDetector+IOnDoubleTapListener, GestureDetector+IOnGestureListener, IDisposable

Remarks

A convenience class to extend when you only want to listen for a subset of all the gestures. This implements all methods in the GestureDetector+IOnGestureListener and GestureDetector+IOnDoubleTapListener but does nothing and return false for all applicable methods.

[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.SimpleOnGestureListener are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

OnDoubleTap(MotionEvent) : Boolean
Notified when a double-tap occurs.
OnDoubleTapEvent(MotionEvent) : Boolean
Notified when an event within a double-tap gesture occurs, including the down, move, and up events.
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.
OnSingleTapConfirmed(MotionEvent) : Boolean
Notified when a single-tap occurs.
OnSingleTapUp(MotionEvent) : Boolean
Notified when a tap occurs with the up MotionEvent that triggered it.