Contents

init(role:userActivity:options:)

Creates a scene session activation request object with a role, a user activity, and options that you provide.

Declaration

init(role: UISceneSession.Role = .windowApplication, userActivity: NSUserActivity? = nil, options: UIScene.ActivationRequestOptions? = nil)

Parameters

  • role:

    The role to request.

  • userActivity:

    A user activity to send to the newly activated scene.

  • options:

    Activation request options to further customize the request.

Discussion

Create an activation request with this method when you want the system to activate a scene session appropriate for the role and userActivity you provide. The system activates an existing scene session when the scene session’s role matches the role you request, and the user activity’s targetContentIdentifier satisfies the scene’s activationConditions. Otherwise, the system activates a new scene session.

See Also

Creating a request