registerOnSwipe method

void registerOnSwipe(
  1. SwipeCallback? swipeCallback
)

Single pointer swipe (fling) event.

A single pointer swipe event is defined as a pointer down, followed by a swipe/fast move with pointer going up.

Parameters

  • IN distX is the difference in pixels on X axis between last two points involved in move action
  • IN distY is the difference in pixels on Y axis between last two points involved in move action
  • IN speedMMPerSec is the moving speed in mm / s

Implementation

void registerOnSwipe(final SwipeCallback? swipeCallback) {
  _swipeCallback = swipeCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'onSwipe',
    swipeCallback == null,
  );
}