registerOnLongPress method

void registerOnLongPress(
  1. TouchCallback? touchCallback
)

Single pointer long touch event.

A long touch event is defined as a pointer down longer than a preset time in milliseconds and then pointer up, and pointer movement has to be less than a preset distance in millimeters.

Parameters

  • IN pos is the position where the event occurred

Implementation

void registerOnLongPress(final TouchCallback? touchCallback) {
  _touchLongPressCallback = touchCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'mapViewOnLongDown',
    touchCallback == null,
  );
}