you will get roSGScreenEvent if the roSgScreen in question was closed by pressing Back button or programmatically. If however Home button was pressed, the app is terminated immediately - currently there is no event hook you can use to detect impending exit. As alternative, you could periodically save state/progress to registry or cloud service.
RokuNB, my post was concerning the Back button. Using the sample, there is no msg.isScreenClosed() event detected.. It is easily reproduceable using the posted sample and you should see the same. Do you not?
Regarding your Home button statement, why is that the case? It seems like Roku is going backward with scenegraph. On the old SDK, if a video was playing and the user pressed the home button, two different events were fired (msg.isPartialResult() and msg.isScreenClosed() ). Why would Roku remove the ability to detect this event in the scene graph sdk?
How is a channel supposed to send an event to (for example) a mobile controller/casting app to tell it that it is exiting the video play process (so the mobile app can update the play state on it's screen)? This seems like a critical feature that has been removed...but why?