Instance Method


Returns the type of area the mouse cursor is over.


iOS, Mac Catalyst
func areaOfInterest(forMouse event: UIEvent) -> PDFAreaOfInterest
func areaOfInterest(forMouse event: NSEvent) -> PDFAreaOfInterest


The PDFAreaOfInterest enumeration defines the various area types. This method is for custom subclasses of the PDFView class. Use it if you override the NSResponder class’s mouseMoved(with:) method or related methods.

Refer to Constants for the various values of the area-of-interest constants. Each of these constants contributes to the value of the PDFAreaOfInterest bit field.

See Also

Working with Mouse Position and Events

func areaOfInterest(for: CGPoint) -> PDFAreaOfInterest

Returns the type of area for a specific cursor location point.

struct PDFAreaOfInterest

The mouse position over PDF view areas.

func setCursorFor(PDFAreaOfInterest)

Sets the type of mouse cursor according to the type of area the mouse cursor is over.

func perform(PDFAction)

Performs the specified action.

Drag Operations

Define drag operations allowed for a view.