update(using:)
Updates the dynamic content of the Live Activity.
Declaration
func update(using contentState: Activity<Attributes>.ContentState) asyncParameters
- contentState:
The updated dynamic content for the Live Activity. The size of the encoded content can’t exceed 4KB in size.
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.