ScaleGestureDetectorCompat
public final class ScaleGestureDetectorCompat
Helper for accessing features in ScaleGestureDetector.
Summary
Public methods |
|
|---|---|
static boolean |
This method is deprecated. Use |
static boolean |
@ReplaceWith(expression = "scaleGestureDetector.isQuickScaleEnabled()")This method is deprecated. Call |
static void |
This method is deprecated. Use |
static void |
@ReplaceWith(expression = "scaleGestureDetector.setQuickScaleEnabled(enabled)")This method is deprecated. Call setQuickScaleEnabled directly. |
Public methods
public static booleanisQuickScaleEnabled(Object scaleGestureDetector)
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()")
public static booleanisQuickScaleEnabled(@NonNull ScaleGestureDetector scaleGestureDetector)
Returns whether the quick scale gesture, in which the user performs a double tap followed by a swipe, should perform scaling. See setQuickScaleEnabled.
public static voidsetQuickScaleEnabled(Object scaleGestureDetector, boolean enabled)
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 | |
|---|---|
Object scaleGestureDetector |
detector for which to set the scaling mode. |
boolean enabled |
true to enable quick scaling, false to disable |
@ReplaceWith(expression = "scaleGestureDetector.setQuickScaleEnabled(enabled)")
public static voidsetQuickScaleEnabled(
@NonNull ScaleGestureDetector scaleGestureDetector,
boolean enabled
)
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 | |
|---|---|
@NonNull ScaleGestureDetector scaleGestureDetector |
detector for which to set the scaling mode. |
boolean enabled |
true to enable quick scaling, false to disable |