ScaleGestureDetectorCompat

public final class ScaleGestureDetectorCompat


Helper for accessing features in ScaleGestureDetector.

Summary

Public constructors

Public methods

static boolean
isQuickScaleEnabled(Object scaleGestureDetector)

This method is deprecated.

Use isQuickScaleEnabled that takes ScaleGestureDetector instead of Object.

static boolean

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

static void
setQuickScaleEnabled(Object scaleGestureDetector, boolean enabled)

This method is deprecated.

Use setQuickScaleEnabled that takes ScaleGestureDetector instead of Object.

static void
setQuickScaleEnabled(
    @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.

Public constructors

ScaleGestureDetectorCompat

public final ScaleGestureDetectorCompat()

Public methods

isQuickScaleEnabled

public static boolean isQuickScaleEnabled(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.

isQuickScaleEnabled

public static boolean isQuickScaleEnabled(@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.

setQuickScaleEnabled

public static