I’m wondering if it’s possible to access these functions:

Basically – My (C#) software triggers one of these screenshot functions and I want it to know where it’s stored so I can use those pictures in my program
I’m on 21.10 if it matters
>Solution :
Ubuntu uses this command.
$ gnome-screenshot -w
With the dconf-editor you should be able to set an other path.
(/org/gnome/gnome-screenshot/auto-save-directory)
Under XUbuntu 21.10 you can use this command in a script to make screenshots:
xfce4-screenshooter -f -s /home/billy/Screenshots/"$(date +"%Y-%m-%d_%I-%M_%S").png"
You should be able to install and use this xfce4 program for Ubuntu (gnome) too.