ScaleGestureDetectorCompat
class ScaleGestureDetectorCompat
Helper for accessing features in ScaleGestureDetector.
Summary
Public functions |
|
|---|---|
java-static Boolean |
This function is deprecated. Use |
java-static Boolean |
@ReplaceWith(expression = "scaleGestureDetector.isQuickScaleEnabled()")This function is deprecated. Call |
java-static Unit |
This function is deprecated. Use |
java-static Unit |
@ReplaceWith(expression = "scaleGestureDetector.setQuickScaleEnabled(enabled)")This function is deprecated. Call setQuickScaleEnabled directly. |
Public functions
java-static funisQuickScaleEnabled(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.
@ReplaceWith(expression = "scaleGestureDetector.isQuickScaleEnabled()")
java-static funisQuickScaleEnabled(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.
java-static funsetQuickScaleEnabled(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.
@ReplaceWith(expression = "scaleGestureDetector.setQuickScaleEnabled(enabled)")
java-static funsetQuickScaleEnabled(
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 |