AlarmKit lets you describe and schedule alarms and countdown timers that alert once or on a repeating schedule. You configure an alarm with an Alarm value and its AlarmAttributes, AlarmPresentation, and AlarmButton, then use AlarmManager to schedule and manage it. Track the user-facing state through AlarmPresentationState, attach your own data by conforming to the AlarmMetadata protocol, and surface alarms through Live Activity and AppIntents integration on iOS.
Essentials 2
The core value that describes a scheduled alarm or countdown timer and the manager that schedules it.
- StAlarmAn object that describes an alarm that can alert once or on a repeating schedule.
- ClAlarmManagerAn object that exposes functions to work with alarms: scheduling, snoozing, cancelling.
Configuring Presentation 3
Types that describe how an alarm appears to the user and the buttons it offers.
- StAlarmAttributesAn object that contains all information necessary for the alarm UI.
- StAlarmPresentationAn object that describes the content required for the alarm UI.
- StAlarmButtonA struct that defines the appearance of buttons.
Tracking Alarm State 1
The user-facing runtime state of a scheduled alarm.
- StAlarmPresentationStateThe system managed content state of an alarm Live Activity.
Attaching Custom Data 1
A protocol for associating your own metadata with an alarm.
- PrAlarmMetadataA metadata object that contains information about an alarm.