Contents

openAppWhenRun

A Boolean property that tells the system to consider the app intent even if its app is not in the foreground.

Declaration

static var openAppWhenRun: Bool { get }

Mentioned in

Discussion

This property is deprecated. Use supportedModes instead. Setting this property to true generates an error if the app intent runs in an app extension. For backward compatability, you can set this property to true for app intents you run inside your app. For example:

@available(*, deprecated)
extension OrderSoupIntent {
    static var openAppWhenRun: Bool { true }
}

See Also

Deprecated