UiAutomationWrapper

public class UiAutomationWrapper
extends Object

java.lang.Object
   ↳ androidx.test.runner.screenshot.UiAutomationWrapper


Wrapper for UiAutomation object.

Ideally we wouldn't need this abstraction but since UiAutomation is final we need an abstraction on top to be able to mock it in tests.

Summary

Public methods

Bitmap takeScreenshot()

Inherited methods

Public methods

takeScreenshot

public Bitmap takeScreenshot ()

Returns
Bitmap