public final 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 methods

final @NonNull AccessibilityNodeInfo

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

final Bitmap

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

final boolean

Whether the waitForStable request timed out.

Public methods

getNode

Added in 2.4.0-alpha02
public final @NonNull AccessibilityNodeInfo getNode()

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

getScreenshot

Added in 2.4.0-alpha02
public final Bitmap getScreenshot()

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

isTimeout

Added in 2.4.0-alpha02
public final boolean isTimeout()

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