<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/CameraCaptureIntent/updateAppContext(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents19CameraCaptureIntentPAAE06updateA7Contextyy0aG0QzSgYaKFZ"
  },
  "title" : "updateAppContext(_:)"
}
-->

# updateAppContext(_:)

Whenever the in-app context for this intent changes any process containing this intent can
call this method to provide updated state to the system.

```
static func updateAppContext(_ newContext: Self.AppContext?) async throws
```

## Discussion

Note: The size of data `newContext` uses when encoded with JSONEncoder can not exceed 4kB

---

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)