Take a photo/screenshot during AR session?

I want the player to be able to easily take a screengrab while using the mobile AR app. I’m currently testing this on my google Pixel 5, but I have a UI widget with a camera icon button that I made, and once clicked I’d like it to take the still screenshot and save it in the phone camera gallery while still keeping the AR app open. I don’t know how to tell the Pixel 5’s camera to take any photos. Eventually I will want this option for iOS too.

have anyone knows the solution ?