GestureDetector GestureDetector Constructors

Definition

Overloads

GestureDetector(GestureDetector+IOnGestureListener) GestureDetector(GestureDetector+IOnGestureListener)

Creates a GestureDetector with the supplied listener.

GestureDetector(Context, GestureDetector+IOnGestureListener) GestureDetector(Context, GestureDetector+IOnGestureListener)

Creates a GestureDetector with the supplied listener.

GestureDetector(GestureDetector+IOnGestureListener, Handler) GestureDetector(GestureDetector+IOnGestureListener, Handler)

Creates a GestureDetector with the supplied listener.

GestureDetector(IntPtr, JniHandleOwnership) GestureDetector(IntPtr, JniHandleOwnership)

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

GestureDetector(Context, GestureDetector+IOnGestureListener, Handler) GestureDetector(Context, GestureDetector+IOnGestureListener, Handler)

Creates a GestureDetector with the supplied listener that runs deferred events on the thread associated with the supplied Handler.

GestureDetector(Context, GestureDetector+IOnGestureListener, Handler, Boolean) GestureDetector(Context, GestureDetector+IOnGestureListener, Handler, Boolean)

Creates a GestureDetector with the supplied listener that runs deferred events on the thread associated with the supplied Handler.

GestureDetector(GestureDetector+IOnGestureListener) GestureDetector(GestureDetector+IOnGestureListener)

Warning

This API is now obsolete.

Creates a GestureDetector with the supplied listener.

[Android.Runtime.Register(".ctor", "(Landroid/view/GestureDetector$OnGestureListener;)V", "")]
[System.Obsolete("deprecated")]
public GestureDetector (Android.Views.GestureDetector.IOnGestureListener listener);
new Android.Views.GestureDetector : Android.Views.GestureDetector.IOnGestureListener -> Android.Views.GestureDetector

Parameters

Exceptions

Remarks

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.

GestureDetector(Context, GestureDetector+IOnGestureListener) GestureDetector(Context, GestureDetector+IOnGestureListener)

Creates a GestureDetector with the supplied listener.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;)V", "", ApiSince=3)]
public GestureDetector (Android.Content.Context context, Android.Views.GestureDetector.IOnGestureListener listener);
new Android.Views.GestureDetector : Android.Content.Context * Android.Views.GestureDetector.IOnGestureListener -> Android.Views.GestureDetector

Parameters

context
Context Context

Exceptions

Remarks

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.

GestureDetector(GestureDetector+IOnGestureListener, Handler) GestureDetector(GestureDetector+IOnGestureListener, Handler)

Warning

This API is now obsolete.

Creates a GestureDetector with the supplied listener.

[Android.Runtime.Register(".ctor", "(Landroid/view/GestureDetector$OnGestureListener;Landroid/os/Handler;)V", "")]
[System.Obsolete("deprecated")]
public GestureDetector (Android.Views.GestureDetector.IOnGestureListener listener, Android.OS.Handler handler);
new Android.Views.GestureDetector : Android.Views.GestureDetector.IOnGestureListener * Android.OS.Handler -> Android.Views.GestureDetector

Parameters

handler
Handler Handler

Exceptions

if either listener or handler is null.

Remarks

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.

GestureDetector(IntPtr, JniHandleOwnership) GestureDetector(IntPtr, JniHandleOwnership)

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

protected GestureDetector (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.GestureDetector : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.GestureDetector

Parameters

javaReference
IntPtr IntPtr

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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.

GestureDetector(Context, GestureDetector+IOnGestureListener, Handler) GestureDetector(Context, GestureDetector+IOnGestureListener, Handler)

Creates a GestureDetector with the supplied listener that runs deferred events on the thread associated with the supplied Handler.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;Landroid/os/Handler;)V", "", ApiSince=3)]
public GestureDetector (Android.Content.Context context, Android.Views.GestureDetector.IOnGestureListener listener, Android.OS.Handler handler);
new Android.Views.GestureDetector : Android.Content.Context * Android.Views.GestureDetector.IOnGestureListener * Android.OS.Handler -> Android.Views.GestureDetector

Parameters

context
Context Context
handler
Handler Handler

Exceptions

Remarks

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.

GestureDetector(Context, GestureDetector+IOnGestureListener, Handler, Boolean) GestureDetector(Context, GestureDetector+IOnGestureListener, Handler, Boolean)

Creates a GestureDetector with the supplied listener that runs deferred events on the thread associated with the supplied Handler.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;Landroid/os/Handler;Z)V", "", ApiSince=8)]
public GestureDetector (Android.Content.Context context, Android.Views.GestureDetector.IOnGestureListener listener, Android.OS.Handler handler, bool unused);
new Android.Views.GestureDetector : Android.Content.Context * Android.Views.GestureDetector.IOnGestureListener * Android.OS.Handler * bool -> Android.Views.GestureDetector

Parameters

context
Context Context
handler
Handler Handler
unused
Boolean Boolean

Exceptions

Remarks

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