registerOnTouch method

void registerOnTouch(
  1. TouchCallback? touchCallback
)

Registers a callback for single-pointer touch down events.

A touch event is fired when a pointer goes down and up within the SDK gesture thresholds for time and travel distance.

Parameters

  • touchCallback: (TouchCallback?) Invoked with the touch position. Pass null to stop receiving notifications.

Implementation

void registerOnTouch(final TouchCallback? touchCallback) {
  _touchCallback = touchCallback;

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