Contents

update(_:)

Updates the dynamic content of the Live Activity.

Declaration

func update(_ content: ActivityContent<Activity<Attributes>.ContentState>) async

Parameters

  • content:

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

Mentioned in

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.

See Also

Updating a Live Activity