---
title: capturesCursor
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturescreeninput/capturescursor
---

# capturesCursor

A Boolean value that specifies whether the mouse cursor appears in the captured output.

## Declaration

```swift
var capturesCursor: Bool { get set }
```

## Discussion

Discussion When this property is true (the default), captured video frames include the mouse pointer. If you change this property to false, the captured output contains only the windows on the screen (that is, the mouse pointer is invisible in captured video). note: Even if you hide the mouse pointer in captured output, CMSampleBuffer objects vended by the capture include metadata for the cursor position and mouse button state. See kCMIOSampleBufferAttachmentKey_MouseAndKeyboardModifiers.

## See Also

### Capturing mouse activity

- [capturesMouseClicks](avfoundation/avcapturescreeninput/capturesmouseclicks.md)
