Function

traverseAncestors

Executes block for all ancestors with a matching key.

traverseAncestors

Source set: Common
public fun DelegatableNode.traverseAncestors(key: Any?, block: (TraversableNode) -> Boolean)

Executes block for all ancestors with a matching key.

Note: The parameter block's return boolean value will determine if the traversal will continue (true = continue, false = cancel).

traverseAncestors

Source set: Common
public fun <T> T.traverseAncestors(block: (T) -> Boolean) where T : TraversableNode

Executes block for all ancestors of the same class and key.

Note: The parameter block's return boolean value will determine if the traversal will continue (true = continue, false = cancel).

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: