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.

Parameters
  • None
Returns
Source Source/CountDown.spoon/init.lua line 85
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)
Returns
Source Source/CountDown.spoon/init.lua line 102
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
Returns
Source Source/CountDown.spoon/init.lua line 39