Reliable APIs to check if a Hotkey/Shortcut is already in use?

In our application we have two usecases for a Hotkey/Shortcut identification API/method.

  1. We have some predefined shortcuts that will ship with our MacOS application. They may or may not change dynamically, based on what the user has already set as shortcuts/hotkeys, and also to avoid any important system wide shortcuts that the user may or may not have changed.

  2. We allow the user to customize the shortcuts/hotkeys in our application, so we want to show what shortcuts the user already has in use system-wide and across their OS experience.

This gives rise to the need for an API that lets us know which shortcut/hotkeys are currently being used by the user and also the current system wide OS shortcuts in use.

Please let me know if there are any APIs in AppKit or SwiftUI we can use for the above

Reliable APIs to check if a Hotkey/Shortcut is already in use?
 
 
Q