AlarmManager.AlarmConfiguration
struct · iOS 26.0+ · SDK 27.1
struct AlarmConfiguration<Metadata> where Metadata : AlarmMetadataAn object that contains all the properties necessary to schedule an alarm. Pass the schedule or countdown and any attributes you define to the `AlarmConfiguration` for the system to schedule. You can pass in an optional secondary intent that the system executes when a person taps a secondary button. This is only available after first unlock. You can also include custom sounds for your alarm. The following example configures an alarm with a countdown duration. ```swift let configuration = AlarmManager.AlarmConfiguration( countdownDuration: Alarm.CountdownDuration(preAlert: 10, postAlert: 10), schedule: nil, attributes: attributes, secondaryIntent: repeatIntent, alertConfiguration: AlertConfiguration( title: "Eggs are ready!", body: "Time to eat!", sound: .default)) ```
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
6 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AlarmManager.AlarmConfiguration.init(countdownDuration:schedule:attributes:stopIntent:secondaryIntent:sound:)
The containing type needs Swift generic type arguments. (no canonical witness for Metadata)
AlarmManager.AlarmConfiguration.timer(duration:attributes:stopIntent:secondaryIntent:sound:)
The containing type needs Swift generic type arguments. (no canonical witness for Metadata)
AlarmManager.AlarmConfiguration.alarm(schedule:attributes:stopIntent:secondaryIntent:sound:)
The containing type needs Swift generic type arguments. (no canonical witness for Metadata)
AlarmManager.AlarmConfiguration.init(countdownDuration:schedule:attributes:appEntityIdentifier:stopIntent:secondaryIntent:sound:)
The containing type needs Swift generic type arguments. (no canonical witness for Metadata)
AlarmManager.AlarmConfiguration.timer(duration:attributes:appEntityIdentifier:stopIntent:secondaryIntent:sound:)
The containing type needs Swift generic type arguments. (no canonical witness for Metadata)
AlarmManager.AlarmConfiguration.alarm(schedule:attributes:appEntityIdentifier:stopIntent:secondaryIntent:sound:)
The containing type needs Swift generic type arguments. (no canonical witness for Metadata)