# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Ctors | Methods | Inherited Methods

# ScaleGestureDetector.SimpleOnScaleGestureListener

`public static class ScaleGestureDetector.SimpleOnScaleGestureListener`
`extends Object` `implements ScaleGestureDetector.OnScaleGestureListener`

java.lang.Object
↳ | android.view.ScaleGestureDetector.SimpleOnScaleGestureListener

A convenience class to extend when you only want to listen for a subset of scaling-related events. This implements all methods in `OnScaleGestureListener` but does nothing. `OnScaleGestureListener#onScale(ScaleGestureDetector)` returns `false` so that a subclass can retrieve the accumulated scale factor in an overridden onScaleEnd. `OnScaleGestureListener#onScaleBegin(ScaleGestureDetector)` returns `true`.

## Summary

### Public constructors
`SimpleOnScaleGestureListener()`

### Public methods
`boolean` | `onScale(ScaleGestureDetector detector)` Responds to scaling events for a gesture in progress.
`boolean` | `onScaleBegin(ScaleGestureDetector detector)` Responds to the beginning of a scaling gesture.
`void` | `onScaleEnd(ScaleGestureDetector detector)` Responds to the end of a scale gesture.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.
From interface `android.view.ScaleGestureDetector.OnScaleGestureListener`
`abstract boolean` | `onScale(ScaleGestureDetector detector)` Responds to scaling events for a gesture in progress.
`abstract boolean` | `onScaleBegin(ScaleGestureDetector detector)` Responds to the beginning of a scaling gesture.
`abstract void` | `onScaleEnd(ScaleGestureDetector detector)` Responds to the end of a scale gesture.

## Public constructors

### SimpleOnScaleGestureListener

    public SimpleOnScaleGestureListener ()

## Public methods

### onScale

    public boolean onScale (ScaleGestureDetector detector)

Responds to scaling events for a gesture in progress. Reported by pointer motion.

Parameters
`detector` | `ScaleGestureDetector`: The detector reporting the event - use this to retrieve extended info about event state.

Returns
`boolean` | Whether or not the detector should consider this event as handled. If an event was not handled, the detector will continue to accumulate movement until an event is handled. This can be useful if an application, for example, only wants to update scaling factors if the change is greater than 0.01.

### onScaleBegin

    public boolean onScaleBegin (ScaleGestureDetector detector)

Responds to the beginning of a scaling gesture. Reported by new pointers going down.

Parameters
`detector` | `ScaleGestureDetector`: The detector reporting the event - use this to retrieve extended info about event state.

Returns
`boolean` | Whether or not the detector should continue recognizing this gesture. For example, if a gesture is beginning with a focal point outside of a region where it makes sense, onScaleBegin() may return false to ignore the rest of the gesture.

### onScaleEnd

    public void onScaleEnd (ScaleGestureDetector detector)

Responds to the end of a scale gesture. Reported by existing pointers going up. Once a scale has ended, `ScaleGestureDetector#getFocusX()` and `ScaleGestureDetector#getFocusY()` will return focal point of the pointers remaining on the screen.

Parameters
`detector` | `ScaleGestureDetector`: The detector reporting the event - use this to retrieve extended info about event state.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*