Skip to content

Most visited

Recently visited

navigation

ScaleGestureDetectorCompat

public final class ScaleGestureDetectorCompat
extends Object

java.lang.Object
   ↳ android.support.v4.view.ScaleGestureDetectorCompat


Helper for accessing features in ScaleGestureDetector introduced after API level 19 (KitKat) in a backwards compatible fashion.

Summary

Public methods

static boolean isQuickScaleEnabled(Object scaleGestureDetector)

Return 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)

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

Inherited methods

From class java.lang.Object

Public methods

isQuickScaleEnabled

boolean isQuickScaleEnabled (Object scaleGestureDetector)

Return whether the quick scale gesture, in which the user performs a double tap followed by a swipe, should perform scaling. See setQuickScaleEnabled(Object, boolean).

Parameters
scaleGestureDetector Object
Returns
boolean

setQuickScaleEnabled

void setQuickScaleEnabled (Object scaleGestureDetector, 
                boolean enabled)

Set whether the associated 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 Object
enabled boolean: true to enable quick scaling, false to disable
This site uses cookies to store your preferences for site-specific language and display options.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.