registerOnFollowPositionState method

void registerOnFollowPositionState(
  1. FollowPositionStateCallback? followPositionStateUpdatedCallback
)

This is called by the map view when it enters/exits the following position

Parameters

  • IN followPositionState The state of the following position

Implementation

void registerOnFollowPositionState(
  final FollowPositionStateCallback? followPositionStateUpdatedCallback,
) {
  _followPositionStateCallback = followPositionStateUpdatedCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'mapViewFollowPositionEntered',
    followPositionStateUpdatedCallback == null,
  );
  GemKitPlatform.instance.filterEvent(
    pointerId,
    'mapViewFollowPositionExited',
    followPositionStateUpdatedCallback == null,
  );
}