pauseButton
TypeScriptget pauseButton(): (AlarmButton) | nullSwift declarationvar pauseButton: AlarmButton?The pause button for a countdown timer. If you specify, the countdown includes a pause button when presented by the templated UI.
struct · iOS 26.0+ · SDK 27.1
struct CountdownAn object that describes the content required for the countdown UI. The code snippet below describes how to configure a countdown UI with a pause and resume button. ```swift let countdown = AlarmPresentation.Countdown(title: "Eggs are cooking") let paused = AlarmPresentation.Paused( title: "Timer paused", resumeButton: AlarmButton(text: "Resume", textColor: .blue, systemImageName: "play.circle")) ```
get pauseButton(): (AlarmButton) | nullSwift declarationvar pauseButton: AlarmButton?The pause button for a countdown timer. If you specify, the countdown includes a pause button when presented by the templated UI.
set pauseButton(value: (AlarmButton) | null)Swift declarationvar pauseButton: AlarmButton?The pause button for a countdown timer. If you specify, the countdown includes a pause button when presented by the templated UI.
get title(): _Foundation_LocalizedStringResourceSwift declarationvar title: LocalizedStringResourceThe title of the countdown.
set title(value: _Foundation_LocalizedStringResource)Swift declarationvar title: LocalizedStringResourceThe title of the countdown.
static init(title: _Foundation_LocalizedStringResource, pauseButton?: (AlarmButton) | null): AlarmPresentation_CountdownSwift declarationinit(title: LocalizedStringResource, pauseButton: AlarmButton? = nil)Creates a countdown with an optional pause button. - Parameters: - title: The title of the countdown. - pauseButton: The optional pause button for a countdown timer.
No declarations were skipped in this snapshot.