Function

isNotDisplayed

Returns true if the matched node is not displayed on screen, including when the node is not composed, composed but not placed, or when none of its bounds are visible on screen after clipping is applied.

isNotDisplayed

Source set: Common
public fun SemanticsNodeInteraction.isNotDisplayed(): Boolean

Returns true if the matched node is not displayed on screen, including when the node is not composed, composed but not placed, or when none of its bounds are visible on screen after clipping is applied.

Returns false if a matching node is currently displayed.

Throws: AssertionError

If multiple nodes match this SemanticsNodeInteraction.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: