Contents

requestWithRole:

Creates a scene session activation request object with a role that you provide.

Declaration

+ (instancetype) requestWithRole:(UISceneSessionRole) role;

Parameters

  • role:

    The role to request.

Return Value

A scene session activation request object.

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