docs » CountDown

Tiny countdown with visual indicator

Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/CountDown.spoon.zip

API Overview

API Documentation

Methods

pauseOrResume
Signature CountDown:pauseOrResume()
Type Method
Description

Pause or resume the existing countdown.

setProgress
Signature CountDown:setProgress(progress)
Type Method
Description

Set the progress of visual indicator to progress.

Parameters:

  • progress - an number specifying the value of progress (0.0 - 1.0)
startFor
Signature CountDown:startFor(minutes)
Type Method
Description

Start a countdown for minutes minutes immediately. Calling this method again will kill the existing countdown instance.

Parameters:

  • minutes - How many minutes