Skip to main content
MrJob
Associate II
February 20, 2019
Question

How do I stop a forEachChild callback chain?

  • February 20, 2019
  • 0 replies
  • 490 views

When I want to execute a certain callback after a certain widget has been pressed, I use the function forEachChild to reach the wanted callback. But during the execution of this callback, I remove the container from the screen to change the visual environment. The function forEachChild however keeps on calling the callback, even after every drawable has been removed from the root container.

How do I stop this callback chain?

This topic has been closed for replies.