Interface NSUserActivityDelegate


  • public interface NSUserActivityDelegate
    The user activity delegate is responsible for updating the state of an activity and is also notified when an activity has been continued on another device.
    • Method Detail

      • userActivityDidReceiveInputStreamOutputStream

        default void userActivityDidReceiveInputStreamOutputStream​(NSUserActivity userActivity,
                                                                   NSInputStream inputStream,
                                                                   NSOutputStream outputStream)
        If supportsContinuationStreams is set to YES the continuing side can request streams back to this user activity. This delegate callback will be received with the incoming streams from the other side. The streams will be in an unopened state. The streams should be opened immediately to start receiving requests from the continuing side.
      • userActivityWasContinued

        default void userActivityWasContinued​(NSUserActivity userActivity)
        The user activity was continued on another device.
      • userActivityWillSave

        default void userActivityWillSave​(NSUserActivity userActivity)
        The user activity will be saved (to be continued or persisted). The receiver should update the activity with current activity state.