<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/QCPlugIn/executionMode()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)QCPlugIn(cm)executionMode"
  },
  "title" : "executionMode()"
}
-->

# executionMode()

Returns the execution mode of the custom patch.

```
class func executionMode() -> QCPlugInExecutionMode
```

## Return Value

The execution mode of the custom patch. See [`QCPlugInExecutionMode`](/documentation/Quartz/QCPlugInExecutionMode) for the constants you can return.

## Discussion

You must implement this method to define whether your custom patch is a provider, a processor, or a consumer.

---

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)