Contents

LiveAssistanceLaunchReason

A type that indicates why the live assistance extension needs to launch its container app.

Declaration

enum LiveAssistanceLaunchReason

Overview

You provide this type from your extension in the LiveAssistanceRequest.Response.requiresUserInput(reason:) enumeration case. Your container app receives a reason string in the userInfo of the NSUserActivity when the system launches your app. Send this value to init(rawValue:) to get an instance of LiveAssistanceLaunchReason that your app can act on by comparing it to the defined cases of the enumeration. The string you receive from the user activity is only appropriate for instantiating a LiveAssistanceLaunchReason to compare against; it’s not appropriate for use in your user interface.

Topics

Working with launch reasons

See Also

Responding to a container app launch