Public API to detect DND in Big Sur?

It's never been possible to detect DND in earlier versions of macOS cleanly however now that the option has become front and center and more accessible, I can't find any reference to detecting DND in the SDK changes.

Am I missing something? Users expect our apps to delay / prevent alerts (in-app custom alerts, not managed by the notification center) from disturbing them when DND is on. There should be a way to detect this using a public API so that we can keep our custom alerts in sync with the DND setting.

Replies

Any news? How to detect is DND active or not in Big Sur?