---
title: "pause(id:)"
framework: alarmkit
role: symbol
role_heading: Instance Method
path: "alarmkit/alarmmanager/pause(id:)"
---

# pause(id:)

Pauses the alarm with the specified ID if it’s in the countdown state.

## Declaration

```swift
func pause(id: Alarm.ID) throws
```

## Parameters

- `id`: The identifier of the alarm to pause.

## Discussion

Discussion The function throws otherwise. Sets the alarm to the AlarmPresentationState.Mode.paused(_:) state.

## See Also

### Changing an alarm state

- [cancel(id:)](alarmkit/alarmmanager/cancel(id:).md)
- [countdown(id:)](alarmkit/alarmmanager/countdown(id:).md)
- [resume(id:)](alarmkit/alarmmanager/resume(id:).md)
- [stop(id:)](alarmkit/alarmmanager/stop(id:).md)
