lightbulb_outline Please take our October 2018 developer survey. Start survey

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

From class java.lang.Object

Public methods

takeScreenshot

Bitmap takeScreenshot ()

Returns
Bitmap