系统闹钟APP响铃响起时,点击电源键可以小睡功能。AlarmKit能否有办法判断是电源键和其他物理按键关闭了闹钟,而非点击或滑动关闭按钮。这样第三方闹钟也可以增加小睡功能。目前是直接关闭了闹钟。
AlarmKit - 如何判断电源键关闭闹钟
If you want to provide more information and a way to extend the AlarmKit framework I would recommend to file an enhancement request.
If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here.
If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?
Albert Pascual Worldwide Developer Relations.
如果你需要增强请求,请看这里:FB21097071 (AlarmKit - 如何判断电源键关闭闹钟?)