AlarmPresentationState
The system managed content state of an alarm Live Activity.
Declaration
struct AlarmPresentationStateOverview
A Live Activity consists of two components: static attributes and dynamic content. Using a sports game as an example, the static attributes represent the team names, while the dynamic content represents the current score that updates throughout the game.
For alarms, these components serve distinct purposes:
Static attributes: Your app provides this content through AlarmAttributes, including information such as tint color and button labels that remain constant.
Dynamic content: AlarmKit provides this content through AlarmPresentationState, including system-managed information such as the alarm fireDate and current presentation mode.
The system automatically updates the AlarmPresentationState as the alarm transitions between different states, such as Alarm.State.countdown, Alarm.State.alerting, and Alarm.State.paused.