有没有办法监控 Mac 何时即将进入睡眠状态?
是否有一种编程方式可以监控 Mac 何时进入睡眠状态?我想监视用户何时故意告诉系统进入睡眠状态以及系统何时准备自然睡眠。
Is there a programmatic way to monitor when a Mac is about the to go sleep? I would like to monitor when the user deliberately tells the system to go to sleep and when the system is preparing to sleep naturally.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以像这样注册以下通知:
您可以像这样注册唤醒通知:
You can register for the following notification like this:
You can register for a wake notification like this: