Requests streams back to the originating app.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The completion handler block that returns streams.
The block takes three arguments:
The stream from which the continuing app can read data written by the originating app.
The stream to which the continuing app writes data to be read by the originating app.
nil; if not successful, an
NSErrorobject that encapsulates the reason why the streams could not be created.
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
NSUser object in the
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.