<!--
{
  "availability" : [
    "iOS: 16.4.0 - 26.0.0",
    "iOSAppExtension: -",
    "iPadOS: 16.4.0 - 26.0.0",
    "macCatalyst: -",
    "macCatalystAppExtension: -",
    "macOS: 13.3.0 - 26.0.0",
    "macOSAppExtension: -",
    "tvOS: 16.4.0 - 26.0.0",
    "tvOSAppExtension: -",
    "visionOS: -",
    "watchOS: 9.4.0 - 26.0.0",
    "watchOSAppExtension: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/ForegroundContinuableIntent",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents27ForegroundContinuableIntentP"
  },
  "title" : "ForegroundContinuableIntent"
}
-->

# ForegroundContinuableIntent

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.

```
protocol ForegroundContinuableIntent : AppIntent
```

## Overview

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 {}
```

## Topics

### Instance Methods

[`func needsToContinueInForegroundError(IntentDialog?, continuation: (() async throws -> Void)?) -> AppIntentError`](/documentation/AppIntents/ForegroundContinuableIntent/needsToContinueInForegroundError(_:continuation:))

A method you call to ask a person to continue an intent’s action in the foreground after it encounters an error.

[`func requestToContinueInForeground<ResultValue>(IntentDialog?, continuation: () async throws -> ResultValue) async throws -> ResultValue`](/documentation/AppIntents/ForegroundContinuableIntent/requestToContinueInForeground(_:continuation:))

A method you call to ask a person to continue an action in the foreground.

## Relationships

### Inherits From

[`AppIntent`](/documentation/AppIntents/AppIntent)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`PersistentlyIdentifiable`](/documentation/AppIntents/PersistentlyIdentifiable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)