---
title: "contentSharingPicker(_:didCancelFor:)"
framework: screencapturekit
role: symbol
role_heading: Instance Method
path: "screencapturekit/sccontentsharingpickerobserver/contentsharingpicker(_:didcancelfor:)"
---

# contentSharingPicker(_:didCancelFor:)

Tells the observer that a sharing picker canceled selection for a stream.

## Declaration

```swift
func contentSharingPicker(_ picker: SCContentSharingPicker, didCancelFor stream: SCStream?)
```

## Parameters

- `picker`: The content-sharing picker that sent this event.
- `stream`: The canceled stream, if any.

## See Also

### Observing events

- [contentSharingPicker(_:didUpdateWith:for:)](screencapturekit/sccontentsharingpickerobserver/contentsharingpicker(_:didupdatewith:for:).md)
