LiveActivityManager

Manages Live Activities.

Functions

Link copied to clipboard

Ends the Live Activity with the given ID.

Link copied to clipboard
fun start(contentState: LiveActivityAttributes.ContentState, attributes: LiveActivityAttributes = LiveActivityAttributes()): String?

Starts a Live Activity; returns its ID or, if starting failed, null.

Link copied to clipboard

Updates the Live Activity with the given ID.