In that case, there’s a system-observe interface which gives what you want. The caveat is that the interface is not auto connected, unless there is a snap declaration in place. If your snap is published to the store, you can open a forum topic and ask for auto connection. Otherwise, you can probably do it yourself once the snap is installed.