<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGEventTapOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@E@CGEventTapOptions"
  },
  "title" : "CGEventTapOptions"
}
-->

# CGEventTapOptions

Constants that specify whether a new event tap is an active filter or a passive listener.

```
enum CGEventTapOptions
```

## Overview

When you create an event tap, you indicate whether it is a passive listener or active event filter. A passive listener receives events but cannot modify or divert them. An active filter may pass an event through unmodified, modify an event, or discard an event.

## Topics

### Constants

[`CGEventTapOptions.defaultTap`](/documentation/CoreGraphics/CGEventTapOptions/defaultTap)

[`CGEventTapOptions.listenOnly`](/documentation/CoreGraphics/CGEventTapOptions/listenOnly)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)