---
title: "alarm(schedule:attributes:appEntityIdentifier:stopIntent:secondaryIntent:sound:)"
framework: alarmkit
role: symbol
role_heading: Type Method
path: "alarmkit/alarmmanager/alarmconfiguration/alarm(schedule:attributes:appentityidentifier:stopintent:secondaryintent:sound:)"
---

# alarm(schedule:attributes:appEntityIdentifier:stopIntent:secondaryIntent:sound:)

Creates a configuration that behaves like a traditional alarm.

## Declaration

```swift
static func alarm(schedule: Alarm.Schedule? = nil, attributes: AlarmAttributes<Metadata>, appEntityIdentifier: EntityIdentifier? = nil, stopIntent: (any LiveActivityIntent)? = nil, secondaryIntent: (any LiveActivityIntent)? = nil, sound: AlertConfiguration.AlertSound = .default) -> AlarmManager.AlarmConfiguration<Metadata>
```

## Parameters

- `schedule`: The schedule for the alarm.
- `attributes`: The attributes to use when presenting the alert.
- `appEntityIdentifier`: The entity associated with the alarm.
- `stopIntent`: The intent to execute when a person taps the stop button.
- `secondaryIntent`: The intent to execute when a person taps the secondary button.
- `sound`: The sound to play when the alarm fires.

## Discussion

Discussion At the scheduled time, based on the schedule parameter you supply, the alarm alerts.
