Android Guides | Samples

Android.Views.ScaleGestureDetector Class

Detects scaling transformation gestures using the supplied MotionEvents.

See Also: ScaleGestureDetector

Syntax

[Android.Runtime.Register("android/view/ScaleGestureDetector", DoNotGenerateAcw=true)]
public class ScaleGestureDetector : Object

Remarks

Detects scaling transformation gestures using the supplied MotionEvents. The NoType:android/view/ScaleGestureDetector$OnScaleGestureListener;Href=../../../reference/android/view/ScaleGestureDetector.OnScaleGestureListener.html callback will notify users when a particular gesture event has occurred. This class should only be used with MotionEvents reported via touch. To use this class:

[Android Documentation]

Requirements

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

The members of Android.Views.ScaleGestureDetector are listed below.

See Also: Object

Public Constructors

Creates a ScaleGestureDetector with the supplied listener.
Creates a ScaleGestureDetector with the supplied listener.

Protected Constructors

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

Public Properties

[read-only]
CurrentSpanSingle. Return the average distance between each of the pointers forming the gesture in progress through the focal point.
[read-only]
CurrentSpanXSingle. Return the average X distance between each of the pointers forming the gesture in progress through the focal point.
[read-only]
CurrentSpanYSingle. Return the average Y distance between each of the pointers forming the gesture in progress through the focal point.
[read-only]
EventTimeInt64. Return the event time of the current event being processed.
[read-only]
FocusXSingle. Get the X coordinate of the current gesture's focal point.
[read-only]
FocusYSingle. Get the Y coordinate of the current gesture's focal point.
[read-only]
IsInProgressBoolean. Returns true if a scale gesture is in progress.
[read-only]
PreviousSpanSingle. Return the previous average distance between each of the pointers forming the gesture in progress through the focal point.
[read-only]
PreviousSpanXSingle. Return the previous average X distance between each of the pointers forming the gesture in progress through the focal point.
[read-only]
PreviousSpanYSingle. Return the previous average Y distance between each of the pointers forming the gesture in progress through the focal point.
QuickScaleEnabledBoolean. Return whether the quick scale gesture, in which the user performs a double tap followed by a swipe, should perform scaling.
[read-only]
ScaleFactorSingle. Return the scaling factor from the previous scale event to the current event.
[read-only]
TimeDeltaInt64. Return the time difference in milliseconds between the previous accepted scaling event and the current scaling event.

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