<!--
{
  "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/requestToContinueInForeground(_:continuation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents27ForegroundContinuableIntentPAAE019requestToContinueInC0_12continuationqd__AA0E6DialogVSg_qd__yYaKScMYcXEtYaKs8SendableRd__lF"
  },
  "title" : "requestToContinueInForeground(_:continuation:)"
}
-->

# requestToContinueInForeground(_:continuation:)

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

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

## Discussion

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.

---

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)