TechnologiesUI & App Frameworks

AlarmKit

iOSmacOStvOSwatchOSvisionOS

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.

  • St
    Alarm
    An object that describes an alarm that can alert once or on a repeating schedule.
  • Cl
    AlarmManager
    An 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.

  • St
    AlarmAttributes
    An object that contains all information necessary for the alarm UI.
  • St
    AlarmPresentation
    An object that describes the content required for the alarm UI.
  • St
    AlarmButton
    A struct that defines the appearance of buttons.

Tracking Alarm State 1

The user-facing runtime state of a scheduled alarm.

  • St
    AlarmPresentationState
    The system managed content state of an alarm Live Activity.

Attaching Custom Data 1

A protocol for associating your own metadata with an alarm.

  • Pr
    AlarmMetadata
    A metadata object that contains information about an alarm.
← UI & App Frameworks