Hi how to take screenshot and video in AR mode, any example is better to explain please?

Hi how to take screenshot and video in AR mode, any example is better to explain please ?