LiveActivityContext
Structure
struct LiveActivityContext
Initializers
init(surface:availableWidth:)
init(surface: DropletSurfaceKind, availableWidth: CGFloat)
Creates a context. Constructed by hosts, read by droplets.
This exact overload remains the legacy ABI entry point and supplies the same settled presentation old hosts implicitly provided.
init(surface:availableWidth:presentation:)
init(surface: DropletSurfaceKind, availableWidth: CGFloat, presentation: LiveActivityPresentationState)
Creates a context with the current host presentation state.
Properties
availableWidth
let availableWidth: CGFloat
The width available to the interactive row. The row remains at the native rowHeight while it widens.
presentation
let presentation: LiveActivityPresentationState
Live host presentation facts. Product views use these to freeze local animation or metering while the host is transitioning or concealed.
surface
let surface: DropletSurfaceKind
The surface kind hosting the activity.