overlayView(_:shouldShowMenuForEvent:atPoint:)
Provides a Boolean value that indicates whether the overlay view shows a menu for the given event.
Declaration
@MainActor func overlayView(_ overlayView: ImageAnalysisOverlayView, shouldShowMenuForEvent event: NSEvent, atPoint point: CGPoint) -> BoolParameters
- overlayView:
The overlay view in which the menu appears.
- event:
The event that occurs.
- point:
The location of the event.
Return Value
true if the menu appears in the overlay; otherwise, false.
Discussion
Implement this method if you don’t want the overlay view to show a menu for a specific event at a location. The default return value is true.