One Logo Pool Ball
AppIntents · IOS API REFERENCE

ForegroundContinuableIntent

protocol · iOS 16.4+ · Deprecated in iOS 26.0 · SDK 27.1

protocol ForegroundContinuableIntent : AppIntent

A protocol you use for app intents which begin their work with the app in the background but may request to continue in the foreground. This protocol is deprecated, please include `.foreground(.dynamic)` in the ``supportedModes`` of your app intent instead. For backward compatibility, you can provide conformance to this protocol in an extension, for example: ```swift @available(*, deprecated) extension OrderSoupIntent: ForegroundContinuableIntent {} ```

Members (2)

method · iOS 16.4+ · Deprecated in iOS 26.0

needsToContinueInForegroundError

Swift declaration
func needsToContinueInForegroundError(_ dialog: IntentDialog? = nil, continuation: (@MainActor () async throws -> Void)? = nil) -> AppIntentError

A method you call to ask a person to continue an intent's action in the foreground after it encounters an error. Call this method when you need to stop performing the app intent and ask a person to continue execution in the foreground. Provide an optional continuation closure that runs on the main thread to update your app's state after the person permits the action to continue in the foreground.

method · iOS 16.4+ · Deprecated in iOS 26.0

requestToContinueInForeground

Swift declaration
@discardableResult func requestToContinueInForeground<ResultValue>(_ dialog: IntentDialog? = nil, continuation: @MainActor () async throws -> ResultValue = { () }) async throws -> ResultValue where ResultValue : Sendable

A method you call to ask a person to continue an action in the foreground. To update your app's state after a person permits the action to continue execution in the foreground, provide an optional continuation closure that the system executes on the main thread. The system passes the result of the closure back to the function's caller.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →