SimpleOnScaleListener

A convenience class to extend when you only want to listen for a subset of scale-related events.

This implements all methods in OnScaleListener but does nothing. OnRotateListener.onRotate returns false so that a subclass can retrieve the accumulated rotation factor in an overridden OnRotateListener.onRotateEnd. OnRotateListener.onRotateBegin returns true.

Inheritors

Functions

Link copied to clipboard
open override fun onScale(detector: ScaleGestureDetector, e: MotionEvent): Boolean

Responds to scaling events for a gesture in progress.

Link copied to clipboard
open override fun onScaleBegin(detector: ScaleGestureDetector, e: MotionEvent): Boolean

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

Link copied to clipboard
open override fun onScaleEnd(detector: ScaleGestureDetector, e: MotionEvent)

Responds to the end of a scale gesture. Reported by existing pointers going up.