registerOnCursorSelectionUpdatedLandmarks method

void registerOnCursorSelectionUpdatedLandmarks(
  1. CursorSelectionCallback<List<Landmark>>? cursorSelectionLandmarksCallback
)

Registers for cursor-hover landmark selections.

Invoked when the native view detects that the cursor hovers over one or more landmarks.

Parameters

  • cursorSelectionLandmarksCallback: (CursorSelectionCallback<List<Landmark>>?) Receives the selected landmarks. Pass null to unregister.

Also see:

Implementation

void registerOnCursorSelectionUpdatedLandmarks(
  final CursorSelectionCallback<List<Landmark>>?
  cursorSelectionLandmarksCallback,
) {
  _cursorSelectionCallbackLandmarks = cursorSelectionLandmarksCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'onCursorSelectionUpdatedLandmarks',
    cursorSelectionLandmarksCallback == null,
  );
}