That’s correct, idle-activation-enabled
is a user setting that apps should not mess with (and if they are sandboxed, can’t change).
There is a D-Bus API to temporarily inhibit certain actions, you can list existing inhibitors with
$ gnome-session-inhibit --list