ScaleGestureDetector

Detects scaling transformation gestures using the supplied MotionEvents.

The android.view.ScaleGestureDetector.OnScaleGestureListener callback will notify users when a particular gesture event has occurred.

This class should only be used with MotionEvents reported via touch.

To use this class:

Constructors

Link copied to clipboard
constructor(context: Context, listener: ScaleGestureDetector.OnScaleListener)

Types

Link copied to clipboard
interface OnScaleListener

The listener for receiving notifications when gestures occur.

Link copied to clipboard

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

Properties

Link copied to clipboard
lateinit var event: MotionEvent

Functions

Link copied to clipboard
open fun getCurrentSpan(): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getEventTime(): Long
Link copied to clipboard
open fun getFocusX(): Float
Link copied to clipboard
open fun getFocusY(): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getScaleFactor(): Float
Link copied to clipboard
open fun getTimeDelta(): Long
Link copied to clipboard
open fun isInProgress(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onTouchEvent(event: MotionEvent): Boolean
Link copied to clipboard
Link copied to clipboard