Home
Sign Up
Sign In
V2EX
›
macOS
是否有获取 OS X 系统 idle 时间的 API?
yunpu
·
Jul 25, 2016
· 2283 views
This topic created in 3778 days ago, the information mentioned may be changed or developed.
大家好
有个疑问,如何在 APP 内部知道当前系统状态?闲置 or 忙碌, idle 时间是多长了?
检索苹果官方 API ,只找到了通知休眠和激活的方法。
IDLE
API
休眠
检索
1 replies
•
2016-07-25 20:51:14 +08:00
xjbeta
Jul 25, 2016
1
试试 NStask 里运行 shell script 或者 py?
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
909 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 20:18
·
PVG 04:18
·
LAX 12:18
·
JFK 15:18
♥ Do have faith in what you're doing.
❯