stop(id:)
Stops the alarm with the specified ID.
Declaration
func stop(id: Alarm.ID) throwsParameters
- id:
The identifier of the alarm to stop.
Discussion
If the alarm is a one-shot, meaning it doesn’t have a repeating schedule, then the system deletes the alarm. If the alarm repeats then it’s rescheduled to alert or begins counting down at the next scheduled time.