registerOnCursorSelectionUpdatedLandmarks method
void
registerOnCursorSelectionUpdatedLandmarks()
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. Passnullto unregister.
Also see:
- setCursorScreenPosition - Move the cursor programmatically to a desired screen position.
Implementation
void registerOnCursorSelectionUpdatedLandmarks(
final CursorSelectionCallback<List<Landmark>>?
cursorSelectionLandmarksCallback,
) {
_cursorSelectionCallbackLandmarks = cursorSelectionLandmarksCallback;
GemKitPlatform.instance.filterEvent(
pointerId,
'onCursorSelectionUpdatedLandmarks',
cursorSelectionLandmarksCallback == null,
);
}