---
title: "updateAppContext(_:)"
framework: appintents
role: symbol
role_heading: Type Method
path: "appintents/cameracaptureintent/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.

## Declaration

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

## Discussion

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