<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "tvOS: 13.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplication/requestSceneSessionActivation(_:userActivity:options:errorHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIApplication(im)requestSceneSessionActivation:userActivity:options:errorHandler:"
  },
  "title" : "requestSceneSessionActivation(_:userActivity:options:errorHandler:)"
}
-->

# requestSceneSessionActivation(_:userActivity:options:errorHandler:)

Asks the system to activate an existing scene, or create a new scene and associate it with your app.

```
func requestSceneSessionActivation(_ sceneSession: UISceneSession?, userActivity: NSUserActivity?, options: UIScene.ActivationRequestOptions?, errorHandler: ((any Error) -> Void)? = nil)
```

## Parameters

`sceneSession`

The session whose scene you want to activate. Specify `nil` when you want the system to create a new scene for your app.

`userActivity`

A user activity object to dispatch to the session’s scene. Use this object to communicate details about a task you want the scene to perform.

`options`

Information for the system to use when creating or activating the scene. For information about how to create this object, see [`UIScene.ActivationRequestOptions`](/documentation/UIKit/UIScene/ActivationRequestOptions).

`errorHandler`

An error handler block to execute if a problem occurs. The method doesn’t execute this block when it successfully activates the scene. This block has no return value and has the following parameter:

- error: The <doc://com.apple.documentation/documentation/Foundation/NSError> object describing the problem that occurred.

## Discussion

Call this method when you want the system to display one of your app’s scenes. For example, you might call this method to dispatch work to the scene in the form of an <doc://com.apple.documentation/documentation/Foundation/NSUserActivity> object. When activating an existing session whose scene is no longer in memory, the system creates a new scene and connects it to your app. Similarly, specifying `nil` for the `sceneSession` parameter causes the system to create a new scene and corresponding session.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)