---
title: "startExecution(_:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/qcplugin/startexecution(_:)"
---

# startExecution(_:)

Allows you to perform custom setup tasks before the Quartz Composer engine starts rendering.

## Declaration

```swift
func startExecution(_ context: (any QCPlugInContext)!) -> Bool
```

## Parameters

- `context`: An opaque object , conforming to the doc://com.apple.quartz/documentation/Quartz/QCPlugInContext protocol, that represents the execution context of the QCPlugIn object. Do not retain this object or use it outside of the scope of this method.

## Return Value

Return Value false indicates a fatal error occurred and prevents the Quartz Composer engine from starting.

## Discussion

Discussion The Quartz Composer engine calls this method  when your custom patch starts to render. You can optionally override this execution method to perform setup tasks.

## See Also

### Performing Custom Tasks During Execution

- [enableExecution(_:)](quartz/qcplugin/enableexecution(_:).md)
- [disableExecution(_:)](quartz/qcplugin/disableexecution(_:).md)
- [stopExecution(_:)](quartz/qcplugin/stopexecution(_:).md)
