Android 12 Developer Preview is here! Try it out, and give us your feedback!

androidx.test.runner.screenshot

Interfaces

ScreenCaptureProcessor Interface for an object that is capable of processing ScreenCaptures. 

Classes

BasicScreenCaptureProcessor A basic ScreenCaptureProcessor for processing a ScreenCapture
ScreenCapture A ScreenCapture contains a bitmap of a device screen along with a set of ScreenCaptureProcessors that will be used to process the ScreenCapture when process() is called. 
Screenshot The Screenshot instance provides methods to capture a ScreenCapture during instrumentation tests run on an android device. 
UiAutomationWrapper Wrapper for UiAutomation object.