Skip to content

ReTimer v1.1.2

Choose a tag to compare

@Mett-Barr Mett-Barr released this 06 Sep 17:21
· 1 commit to master since this release

ReTimer v1.1.2
Release Date: 2023-09-07

摘要/Summary:
這個版本主要增強了 ReTimer 的用戶定制能力,允許用戶在計時器啟動或重新啟動時加入自定義的邏輯。
This release primarily enhances the customizability of ReTimer, allowing users to integrate custom logic when the timer starts or restarts.

詳細更動/Changelog:

將變數名由 timeoutIntervalMs 改為 interval,使其更為清晰。
Renamed variable from timeoutIntervalMs to interval for better clarity.

新增 onStartOrRestart 參數,允許用戶在計時器啟動或重新啟動時加入自定義的邏輯。
Added onStartOrRestart parameter, enabling users to incorporate custom logic when the timer starts or restarts.

在 startOrRestart() 的最後執行 onStartOrRestart(), 以將用戶的邏輯與計時器的生命週期一併封裝。
Integrated user logic with the timer's lifecycle by executing onStartOrRestart() at the end of startOrRestart().