---
title: "areaOfInterest(forMouse:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfview/areaofinterest(formouse:)"
---

# areaOfInterest(forMouse:)

Returns the type of area the mouse cursor is over.

## Declaration

```swift
func areaOfInterest(forMouse event: UIEvent) -> PDFAreaOfInterest
```

```swift
func areaOfInterest(forMouse event: NSEvent) -> PDFAreaOfInterest
```

## Discussion

Discussion 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

- [areaOfInterest(for:)](pdfkit/pdfview/areaofinterest(for:).md)
- [PDFAreaOfInterest](pdfkit/pdfareaofinterest.md)
- [setCursorFor(_:)](pdfkit/pdfview/setcursorfor(_:).md)
- [perform(_:)](pdfkit/pdfview/perform(_:).md)
- [Drag Operations](pdfkit/drag-operations.md)
