registerOnTouch method
void
registerOnTouch(
- 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. Passnullto stop receiving notifications.
Implementation
void registerOnTouch(final TouchCallback? touchCallback) {
_touchCallback = touchCallback;
GemKitPlatform.instance.filterEvent(
pointerId,
'mapViewOnTouch',
touchCallback == null,
);
}