Contents

countdown(id:)

Performs a countdown for the alarm with the specified ID if it’s currently alerting.

Declaration

func countdown(id: Alarm.ID) throws

Parameters

  • id:

    The identifier of the alarm to perform a countdown for.

Discussion

The function throws otherwise. This is identical to the repeat function of a timer, or the snooze function of an alarm.

See Also

Changing an alarm state