registerOnPinchSwipe method

void registerOnPinchSwipe(
  1. PinchSwipeCallback? pinchSwipeCallback
)

Two pointer rotating and zooming, or just zooming, swipe event.

Parameters

A two pointer rotating and zooming, or just zooming, swipe event is defined as two pointers down, followed by a rotating or zooming pinch/fast move while pointers are lifted up.

  • IN centerPosInPix is the center position in pixels between the two points involved in move action
  • IN zoomingSpeedInMMPerSec is the moving speed in mm / s of the faster of the 2 pointers; negative to zoom out (pointers moving toward each other) or positive to zoom in (pointers moving away from each other), set to 0 for rotating swipe only.
  • IN rotatingSpeedInMMPerSec is the moving speed in mm / s of the faster of the 2 pointers; negative to rotate to the left/counterclockwise, positive to rotate to the right/clockwise, set to 0 for zooming swipe only.

Implementation

void registerOnPinchSwipe(final PinchSwipeCallback? pinchSwipeCallback) {
  _pinchSwipeCallback = pinchSwipeCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'onPinchSwipe',
    pinchSwipeCallback == null,
  );
}