onPinch

open override fun onPinch(start1: Xy, start2: Xy, end1: Xy, end2: Xy, center: Xy)

Two pointers pinch event. A two pointers pinch event is defined as two pointers down, followed by moving one or both pointers toward or away from each other.

Parameters

start1

is the previous position for first pointer

start2

is the previous position for second pointer

end1

is the current position for first pointer

end2

is the current position for second pointer

center

is the rotation center


var onPinch: (start1: Xy, start2: Xy, end1: Xy, end2: Xy, center: Xy) -> Unit?

Two pointers pinch event. Lambda Signature: (start1: Xy, start2: Xy, end1: Xy, end2: Xy, center: Xy) -> Unit A two pointers pinch event is defined as two pointers down, followed by moving one or both pointers toward or away from each other.

Parameters

start1

is the previous position for first pointer

start2

is the previous position for second pointer

end1

is the current position for first pointer

end2

is the current position for second pointer

center

is the rotation center