Contents

pause(id:)

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

Declaration

func pause(id: Alarm.ID) throws

Parameters

  • id:

    The identifier of the alarm to pause.

Discussion

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

See Also

Changing an alarm state