---
title: "streamDidBecomeActive(_:)"
framework: screencapturekit
role: symbol
role_heading: Instance Method
path: "screencapturekit/scstreamdelegate/streamdidbecomeactive(_:)"
---

# streamDidBecomeActive(_:)

## Declaration

```swift
optional func streamDidBecomeActive(_ stream: SCStream)
```

## Parameters

- `stream`: The SCStream object

## Discussion

Discussion streamDidBecomeActive: notifies the delegate the first time any window that was being shared in the stream is re-opened after all the windows being shared are closed.  When all the windows being shared are closed, the client will receive streamDidBecomeInactive:.
