Snapshot
struct Snapshot : Codable
A host sample with the timing, group position, and controls needed for remote display.
-
The selected timer’s stable identifier, or nil when the host has no timer to show.
Declaration
Swift
let timerID: UUID? -
The one-based number of the active timer group.
Declaration
Swift
let groupNumber: Int -
The one-based position of the selected timer in its group.
Declaration
Swift
let timerNumber: Int -
The number of presets in the active group.
Declaration
Swift
let groupSize: Int -
The phase recorded when the host took the sample.
Declaration
Swift
let phase: Phase -
Whole seconds remaining in the active timer when the host took the sample.
Declaration
Swift
let remaining: Int -
The active timer’s end time in the host clock, if it is counting down.
Declaration
Swift
var deadline: Date? -
The active timer’s warning threshold in seconds remaining.
Declaration
Swift
let warning: Int -
The active timer’s final threshold in seconds remaining.
Declaration
Swift
let final: Int -
The operations advertised in the host’s response.
Declaration
Swift
let commands: [TimerOperation] -
On the Watch, identifies the specific host state the displayed controls describe.
Declaration
Swift
var stamp: String? -
Advertised separately so older Watches can still decode every value in the commands array.
Declaration
Swift
var canRewindGroup: Bool? -
Seconds in later timers included in the host’s displayed countdown.
Declaration
Swift
var followingDuration: Int? -
The countdown that Play would start while the host editor is showing an individual preset.
Declaration
Swift
var complicationPresetTime: Int? -
Configured duration to display if the complication loses its host mid-countdown.
Declaration
Swift
var complicationRewindTime: Int? -
Produces a ready snapshot with the configured rewind duration when one is available.
Declaration
Swift
var rewoundForComplication: `Self` { get } -
Checks the advertised commands and the separately negotiated group rewind capability.
Declaration
Swift
func supports(_ operation: TimerOperation) -> Bool -
TimerEngine displays ceiling seconds. A delayed message therefore still shows the current second.
Declaration
Swift
func remaining(at date: Date) -> Int -
The digital readout counts through a group handoff. Commands and warnings still use the current timer’s deadline.
Declaration
Swift
var displayDeadline: Date? { get } -
Returns whole seconds left on the displayed countdown, including any following timers.
Declaration
Swift
func displayRemaining(at date: Date) -> Int -
Uses the complication’s configured ready duration when available and the live display otherwise.
Declaration
Swift
func complicationRemaining(at date: Date) -> Int -
Advances through the warning and final thresholds using the active timer’s deadline.
At zero, it holds the last host phase until the host reports whether the timer advanced or raised an alarm.
Declaration
Swift
func phase(at date: Date) -> Phase -
Continuous ticks share a command revision. A seek, restart, selection or control change invalidates it.
Declaration
Swift
func representsSameControlState(as other: `Self`) -> Bool
View on GitHub
Install in Dash