---
title: "update(using:)"
framework: activitykit
role: symbol
role_heading: Instance Method
path: "activitykit/activity/update(using:)"
---

# update(using:)

Updates the dynamic content of the Live Activity.

## Declaration

```swift
func update(using contentState: Activity<Attributes>.ContentState) async
```

## Parameters

- `contentState`: The updated dynamic content for the Live Activity. The size of the encoded content can’t exceed 4KB in size.

## Discussion

Discussion Use this function to update the Live Activity while your app is in the foreground or while it’s in the background — for example, by using Background Tasks. note: The system ignores attempts to update a Live Activity that ended.

## See Also

### Deprecated

- [request(attributes:contentState:pushType:)](activitykit/activity/request(attributes:contentstate:pushtype:).md)
- [update(using:alertConfiguration:)](activitykit/activity/update(using:alertconfiguration:).md)
- [end(using:dismissalPolicy:)](activitykit/activity/end(using:dismissalpolicy:).md)
- [contentState](activitykit/activity/contentstate-swift.property.md)
- [contentStateUpdates](activitykit/activity/contentstateupdates-swift.property.md)
- [Activity.ContentStateUpdates](activitykit/activity/contentstateupdates-swift.struct.md)
