class StableResult


Represents a node that is considered stable and it's returned by androidx.test.uiautomator.waitForStable.

Note that if isTimeout is true, it means that the node was not stable by the end of the timeout.

Summary

Public properties

Boolean

Whether the waitForStable request timed out.

AccessibilityNodeInfo

The latest node acquired, that is stable if isTimeout is false.

Bitmap?

A screenshot of the node if requireStableScreenshot was set to true.

Public properties

isTimeout

Added in 2.4.0-alpha02
val isTimeoutBoolean

Whether the waitForStable request timed out. If this value is true, node may not be stable.

node

Added in 2.4.0-alpha02
val nodeAccessibilityNodeInfo

The latest node acquired, that is stable if isTimeout is false.

screenshot

Added in 2.4.0-alpha02
val screenshotBitmap?

A screenshot of the node if requireStableScreenshot was set to true.