跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

IAppTimerServicer.cs

31 行 · 753 B历史下载
1using Core.Event;
2using System;
3using System.Collections.Generic;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7
8namespace Core.Servicers.Interfaces
9{
10 public interface IAppTimerServicer
11 {
12 /// <summary>
13 /// 当有应用的计时更新时发生
14 /// </summary>
15 event AppTimerEventHandler OnAppDurationUpdated;
16
17 /// <summary>
18 /// 启动计时服务
19 /// </summary>
20 void Start();
21 /// <summary>
22 /// 停止计时服务
23 /// </summary>
24 void Stop();
25 /// <summary>
26 /// 获取当前应用的计时信息
27 /// </summary>
28 /// <returns></returns>
29 AppDurationUpdatedEventArgs GetAppDuration();
30 }
31}