Contents

update(using:alertConfiguration:)

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

Declaration

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 state.

See Also

Deprecated