ScaleGestureDetectorCompat

Added in 1.1.0

class ScaleGestureDetectorCompat


Helper for accessing features in ScaleGestureDetector.

Summary

Public functions

java-static Boolean
isQuickScaleEnabled(scaleGestureDetector: Any!)

This function is deprecated.

Use isQuickScaleEnabled that takes ScaleGestureDetector instead of Object.

java-static Boolean

Returns whether the quick scale gesture, in which the user performs a double tap followed by a swipe, should perform scaling.

java-static Unit
setQuickScaleEnabled(scaleGestureDetector: Any!, enabled: Boolean)

This function is deprecated.

Use setQuickScaleEnabled that takes ScaleGestureDetector instead of Object.

java-static Unit
setQuickScaleEnabled(
    scaleGestureDetector: ScaleGestureDetector,
    enabled: Boolean
)

Sets whether the associated ScaleGestureDetector.OnScaleGestureListener should receive onScale callbacks when the user performs a doubleTap followed by a swipe.

Public functions

isQuickScaleEnabled

Added in 1.1.0
Deprecated in 1.1.0
java-static fun isQuickScaleEnabled(scaleGestureDetector: Any!): Boolean

Returns whether the quick scale gesture, in which the user performs a double tap followed by a swipe, should perform scaling. See setQuickScaleEnabled.

isQuickScaleEnabled

Added in 1.1.0
java-static fun isQuickScaleEnabled(scaleGestureDetector: ScaleGestureDetector): Boolean

Returns whether the quick scale gesture, in which the user performs a double tap followed by a swipe, should perform scaling. See setQuickScaleEnabled.

setQuickScaleEnabled

Added in 1.1.0
Deprecated in 1.1.0
java-static fun setQuickScaleEnabled(scaleGestureDetector: Any!, enabled: Boolean): Unit

Sets whether the associated ScaleGestureDetector.OnScaleGestureListener should receive onScale callbacks when the user performs a doubleTap followed by a swipe. Note that this is enabled by default if the app targets API 19 and newer.

Parameters
scaleGestureDetector: Any!

detector for which to set the scaling mode.

enabled: Boolean

true to enable quick scaling, false to disable

setQuickScaleEnabled

Added in 1.1.0
java-static fun setQuickScaleEnabled(
    scaleGestureDetector: ScaleGestureDetector,
    enabled: Boolean
): Unit

Sets whether the associated ScaleGestureDetector.OnScaleGestureListener should receive onScale callbacks when the user performs a doubleTap followed by a swipe. Note that this is enabled by default if the app targets API 19 and newer.

Parameters
scaleGestureDetector: ScaleGestureDetector

detector for which to set the scaling mode.

enabled: Boolean

true to enable quick scaling, false to disable