belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
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.1.0.
Use |
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 |
static
void
|
setQuickScaleEnabled(Object scaleGestureDetector, boolean enabled)
This method was deprecated
in API level 26.1.0.
Use |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public methods
isQuickScaleEnabled
boolean isQuickScaleEnabled (Object scaleGestureDetector)
This method was deprecated
in API level 26.1.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
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
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
void setQuickScaleEnabled (Object scaleGestureDetector, boolean enabled)
This method was deprecated
in API level 26.1.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 |
Annotations
Interfaces
- ActionProvider.VisibilityListener
- AsyncLayoutInflater.OnInflateFinishedListener
- LayoutInflaterFactory
- MenuItemCompat.OnActionExpandListener
- NestedScrollingChild
- NestedScrollingChild2
- NestedScrollingParent
- NestedScrollingParent2
- OnApplyWindowInsetsListener
- ScrollingView
- TintableBackgroundView
- ViewPager.OnAdapterChangeListener
- ViewPager.OnPageChangeListener
- ViewPager.PageTransformer
- ViewPropertyAnimatorListener
- ViewPropertyAnimatorUpdateListener
Classes
- AbsSavedState
- AccessibilityDelegateCompat
- ActionProvider
- AsyncLayoutInflater
- GestureDetectorCompat
- GravityCompat
- InputDeviceCompat
- LayoutInflaterCompat
- MarginLayoutParamsCompat
- MenuCompat
- MenuItemCompat
- MotionEventCompat
- NestedScrollingChildHelper
- NestedScrollingParentHelper
- PagerAdapter
- PagerTabStrip
- PagerTitleStrip
- PointerIconCompat
- ScaleGestureDetectorCompat
- VelocityTrackerCompat
- ViewCompat
- ViewConfigurationCompat
- ViewGroupCompat
- ViewPager
- ViewPager.LayoutParams
- ViewPager.SavedState
- ViewPager.SimpleOnPageChangeListener
- ViewParentCompat
- ViewPropertyAnimatorCompat
- ViewPropertyAnimatorListenerAdapter
- WindowCompat
- WindowInsetsCompat