跳到主要内容

github/tai

公开

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

浏览文件

IAppObserver.cs

29 行 · 648 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 /// <summary>
11 /// 观察者,用于监听应用程序获取焦点事件
12 /// </summary>
13 public interface IAppObserver
14 {
15 /// <summary>
16 /// 启动观察
17 /// </summary>
18 void Start();
19 /// <summary>
20 /// 停止观察
21 /// </summary>
22 void Stop();
23
24 /// <summary>
25 /// 切换活跃APP时发生
26 /// </summary>
27 event AppObserverEventHandler OnAppActiveChanged;
28 }
29}