---
title: "startCapture(completionHandler:)"
framework: screencapturekit
role: symbol
role_heading: Instance Method
path: "screencapturekit/scstream/startcapture(completionhandler:)"
---

# startCapture(completionHandler:)

Starts the stream with a callback to indicate whether it successfully starts.

## Declaration

```swift
func startCapture(completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
```

```swift
func startCapture() async throws
```

## Parameters

- `completionHandler`: A completion handler that provides an error if the stream fails to start.

## See Also

### Starting and stopping a stream

- [stopCapture(completionHandler:)](screencapturekit/scstream/stopcapture(completionhandler:).md)
