<!--
{
  "availability" : [
    "iOS: 16.1.0 - 16.2.0",
    "iPadOS: 16.1.0 - 16.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "ActivityKit",
  "identifier" : "/documentation/ActivityKit/Activity/update(using:alertConfiguration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ActivityKit"
    ],
    "preciseIdentifier" : "s:11ActivityKit0A0C6update5using18alertConfigurationy12ContentStateQz_AA05AlertF0VSgtYaF"
  },
  "title" : "update(using:alertConfiguration:)"
}
-->

# update(using:alertConfiguration:)

Updates the dynamic content of a Live Activity and alerts a person about the Live Activity update.

```
func update(using contentState: Activity<Attributes>.ContentState, alertConfiguration: AlertConfiguration? = nil) async
```

## Parameters

`contentState`

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

`alertConfiguration`

The alert configuration you use to configure how the system notifies
a person about the updated content of the Live Activity.

## Discussion

The system ignores updates to a Live Activity that’s in the [`ActivityState.ended`](/documentation/ActivityKit/ActivityState/ended)
state.

---

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)