Share via


ScaleGestureDetector Constructors

Definition

Overloads

ScaleGestureDetector(Context, ScaleGestureDetector+IOnScaleGestureListener)

Creates a ScaleGestureDetector with the supplied listener.

ScaleGestureDetector(IntPtr, JniHandleOwnership)

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

ScaleGestureDetector(Context, ScaleGestureDetector+IOnScaleGestureListener, Handler)

Creates a ScaleGestureDetector with the supplied listener.

ScaleGestureDetector(Context, ScaleGestureDetector+IOnScaleGestureListener)

Creates a ScaleGestureDetector with the supplied listener.

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

Parameters

context
Context

the application's context

listener
ScaleGestureDetector.IOnScaleGestureListener

the listener invoked for all the callbacks, this must not be null.

Attributes

Exceptions

if listener is null.

Remarks

Java documentation for android.view.ScaleGestureDetector.ScaleGestureDetector(android.content.Context, android.view.OnScaleGestureListener).

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

ScaleGestureDetector(IntPtr, JniHandleOwnership)

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

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

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

ScaleGestureDetector(Context, ScaleGestureDetector+IOnScaleGestureListener, Handler)

Creates a ScaleGestureDetector with the supplied listener.

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

Parameters

context
Context

the application's context

listener
ScaleGestureDetector.IOnScaleGestureListener

the listener invoked for all the callbacks, this must not be null.

handler
Handler
Attributes

Exceptions

if listener is null.

Remarks

Java documentation for android.view.ScaleGestureDetector.ScaleGestureDetector(android.content.Context, android.view.OnScaleGestureListener).

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