I created a roSGScreen instance (screen1) and pushed the screen from the main class into the screen stack. Then I pushed another screen (screen2) into the stack. Now I want to remove the screen (pop from the screen stack) programmatically. The ScreenGraph API says that close() function call will do the action but how do I get the screen instance and where should I call the method (I'm doing it in a Task component) are not clear for me.
Please help me to understand the object management in brightscript especially in screen stack