How to implement the screenshot function in visionOS?

Hello,technologists!

I want to take screenshot in visionOS,but i dont know which API is applicative。Now,i try to use “RPScreenRecorder” ,but it‘s not work。And “UIScreen” is not supported by visionOS。

“RPScreenRecorder” can work,but it can only capture the image of the current application.

How to implement the screenshot function in visionOS?
 
 
Q