Home > widget-integration > CountdownTimerController > tick
CountdownTimerController.tick() method
Single tick: calculate remaining time and render or handle expiration.
Runs every second via the interval set by . Delegates to when the timer reaches zero, or otherwise.
Signature:
protected tick(): Promise<void>;
Returns:
Promise<void>
Example
Override to skip ticks when the browser tab is hidden:
protected async tick() {
if (document.hidden) return;
return super.tick();
}