---
title: "getContinuationStreams(completionHandler:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsuseractivity/getcontinuationstreams(completionhandler:)"
---

# getContinuationStreams(completionHandler:)

Requests streams back to the originating app.

## Declaration

```swift
func getContinuationStreams(completionHandler: @escaping @Sendable (InputStream?, OutputStream?, (any Error)?) -> Void)
```

```swift
func continuationStreams() async throws -> (InputStream, OutputStream)
```

## Parameters

- `completionHandler`: The completion handler block that returns streams. The block takes three arguments:

## Discussion

Discussion When an app is launched for a continuation event, it can request streams back to the originating app. Streams can be successfully retrieved only from the NSUserActivity object in the NSApplication or UIApplication delegate that is called for a continuation event. The streams are provided by the completion handler in an unopened state, and the delegate should open them immediately to start communicating with the continuing side. Continuation streams are an optional feature of Handoff, and most user activities do not need them for successful continuation. When streams are needed, a simple request from the continuing app accompanied by a response from the originating app is enough for most continuation events.

## See Also

### Working with continuation streams

- [supportsContinuationStreams](foundation/nsuseractivity/supportscontinuationstreams.md)
