Home
Sign Up
Sign In
V2EX
›
macOS
是否有获取 OS X 系统 idle 时间的 API?
yunpu
·
Jul 25, 2016
· 2281 views
This topic created in 3777 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
·
1899 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 00:15
·
PVG 08:15
·
LAX 16:15
·
JFK 19:15
♥ Do have faith in what you're doing.
❯