다음을 통해 공유


GestureDetector Constructors

Definition

Overloads

GestureDetector(GestureDetector+IOnGestureListener)
Obsolete.

Creates a GestureDetector with the supplied listener.

GestureDetector(Context, GestureDetector+IOnGestureListener)

Creates a GestureDetector with the supplied listener.

GestureDetector(GestureDetector+IOnGestureListener, Handler)
Obsolete.

Creates a GestureDetector with the supplied listener.

GestureDetector(IntPtr, JniHandleOwnership)

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

GestureDetector(Context, GestureDetector+IOnGestureListener, Handler)

Creates a GestureDetector with the supplied listener.

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

Creates a GestureDetector with the supplied listener.

GestureDetector(GestureDetector+IOnGestureListener)

Caution

deprecated

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);
[<Android.Runtime.Register(".ctor", "(Landroid/view/GestureDetector$OnGestureListener;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Views.GestureDetector : Android.Views.GestureDetector.IOnGestureListener -> Android.Views.GestureDetector

Parameters

listener
GestureDetector.IOnGestureListener

the listener invoked for all the callbacks, this must not be null. If the listener implements the OnDoubleTapListener or OnContextClickListener then it will also be set as the listener for these callbacks (for example when using the SimpleOnGestureListener).

Attributes

Exceptions

if listener is null.

Remarks

Java documentation for android.view.GestureDetector.GestureDetector(android.content.Context, android.view.OnGestureListener).

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.

See also

Applies to

GestureDetector(Context, GestureDetector+IOnGestureListener)

Creates a GestureDetector with the supplied listener.

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

Parameters

context
Context

An android.app.Activity or a Context created from Context#createWindowContext(int, Bundle)

listener
GestureDetector.IOnGestureListener

the listener invoked for all the callbacks, this must not be null. If the listener implements the OnDoubleTapListener or OnContextClickListener then it will also be set as the listener for these callbacks (for example when using the SimpleOnGestureListener).

Attributes

Exceptions

if listener is null.

Remarks

Java documentation for android.view.GestureDetector.GestureDetector(android.content.Context, android.view.OnGestureListener).

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.

See also

Applies to

GestureDetector(GestureDetector+IOnGestureListener, Handler)

Caution

deprecated

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);
[<Android.Runtime.Register(".ctor", "(Landroid/view/GestureDetector$OnGestureListener;Landroid/os/Handler;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Views.GestureDetector : Android.Views.GestureDetector.IOnGestureListener * Android.OS.Handler -> Android.Views.GestureDetector

Parameters

listener
GestureDetector.IOnGestureListener

the listener invoked for all the callbacks, this must not be null. If the listener implements the OnDoubleTapListener or OnContextClickListener then it will also be set as the listener for these callbacks (for example when using the SimpleOnGestureListener).

handler
Handler
Attributes

Exceptions

if either listener or handler is null.

Remarks

Java documentation for android.view.GestureDetector.GestureDetector(android.content.Context, android.view.OnGestureListener).

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

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

nativeint

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

transfer
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.

Applies to

GestureDetector(Context, GestureDetector+IOnGestureListener, Handler)

Creates a GestureDetector with the supplied listener.

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

Parameters

context
Context

An android.app.Activity or a Context created from Context#createWindowContext(int, Bundle)

listener
GestureDetector.IOnGestureListener

the listener invoked for all the callbacks, this must not be null. If the listener implements the OnDoubleTapListener or OnContextClickListener then it will also be set as the listener for these callbacks (for example when using the SimpleOnGestureListener).

handler
Handler
Attributes

Exceptions

if listener is null.

Remarks

Java documentation for android.view.GestureDetector.GestureDetector(android.content.Context, android.view.OnGestureListener).

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.

See also

Applies to

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

Creates a GestureDetector with the supplied listener.

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

Parameters

context
Context

An android.app.Activity or a Context created from Context#createWindowContext(int, Bundle)

listener
GestureDetector.IOnGestureListener

the listener invoked for all the callbacks, this must not be null. If the listener implements the OnDoubleTapListener or OnContextClickListener then it will also be set as the listener for these callbacks (for example when using the SimpleOnGestureListener).

handler
Handler
unused
Boolean
Attributes

Exceptions

if listener is null.

Remarks

Java documentation for android.view.GestureDetector.GestureDetector(android.content.Context, android.view.OnGestureListener).

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.

See also

Applies to