Class

TraversableNode.Companion.TraverseDescendantsAction

Tree traversal actions for the traverseDescendantsIf related functions: - Continue - continue the traversal - SkipSubtreeAndContinue - continue the traversal BUT skip the matching node's subtree (this is a rarer case) - CancelTraversal - cancels the traversal (returns from function call)

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
enum class TraverseDescendantsAction

Tree traversal actions for the traverseDescendantsIf related functions:

  • Continue - continue the traversal
  • SkipSubtreeAndContinue - continue the traversal BUT skip the matching node's subtree (this is a rarer case)
  • CancelTraversal - cancels the traversal (returns from function call)

To see examples of all the actions, see TraversableModifierNodeTest. For a return/cancel example specifically, see traverseSubtreeWithSameKeyIf_cancelTraversalOfDifferentClassSameKey().