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
@ReplaceWith(expression = "scaleGestureDetector.isQuickScaleEnabled()")
isQuickScaleEnabled(scaleGestureDetector: ScaleGestureDetector)

This function is deprecated.

Call isQuickScaleEnabled directly.

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

This function is deprecated.

Use setQuickScaleEnabled that takes ScaleGestureDetector instead of Object.

java-static Unit
@ReplaceWith(expression = "scaleGestureDetector.setQuickScaleEnabled(enabled)")
setQuickScaleEnabled(
    scaleGestureDetector: ScaleGestureDetector,
    enabled: Boolean
)

This function is deprecated.

Call setQuickScaleEnabled directly.

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
Deprecated in 1.15.0
@ReplaceWith(expression = "scaleGestureDetector.isQuickScaleEnabled()")
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
Deprecated in 1.15.0
@ReplaceWith(expression = "scaleGestureDetector.setQuickScaleEnabled(enabled)")
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