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.

Summary

Public methods

static boolean isQuickScaleEnabled(Object scaleGestureDetector)

This method was deprecated in API level 26.0.0. Use isQuickScaleEnabled(ScaleGestureDetector) that takes ScaleGestureDetector instead of Object.

static boolean isQuickScaleEnabled(ScaleGestureDetector scaleGestureDetector)

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

static void setQuickScaleEnabled(ScaleGestureDetector scaleGestureDetector, boolean enabled)

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

static void setQuickScaleEnabled(Object scaleGestureDetector, boolean enabled)

This method was deprecated in API level 26.0.0. Use setQuickScaleEnabled(ScaleGestureDetector, boolean) that takes ScaleGestureDetector instead of Object.

Inherited methods

From class java.lang.Object

Public methods

isQuickScaleEnabled

added in version 22.0.0
boolean isQuickScaleEnabled (Object scaleGestureDetector)

This method was deprecated in API level 26.0.0.
Use isQuickScaleEnabled(ScaleGestureDetector) that takes ScaleGestureDetector instead of Object.

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

Parameters
scaleGestureDetector Object

Returns
boolean

isQuickScaleEnabled

added in version 26.0.0
boolean isQuickScaleEnabled (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(ScaleGestureDetector, boolean).

Parameters
scaleGestureDetector ScaleGestureDetector

Returns
boolean

setQuickScaleEnabled

added in version 26.0.0
void setQuickScaleEnabled (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
scaleGestureDetector ScaleGestureDetector

enabled boolean: true to enable quick scaling, false to disable

setQuickScaleEnabled

added in version 22.0.0
void setQuickScaleEnabled (Object scaleGestureDetector, 
                boolean enabled)

This method was deprecated in API level 26.0.0.
Use setQuickScaleEnabled(ScaleGestureDetector, boolean) that takes ScaleGestureDetector instead of Object.

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 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.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

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.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)