Hello,
I need to detect when someone closes the screen before the channel exits completely. Per this documentation, it looks like I should be getting an isScreenClosed event.
https://sdkdocs.roku.com/display/sdkdoc/roSGScreenEventBut it never arrives. Does everyone else see the same? I even checked out some sample channels, such as this one:
https://github.com/rokudev/videoplayer-channelAnd yet when I hit the back button, no event is detected. I added the print statement in the snippet below from the Main function, and it is never executed. Any ideas?
while(true)
msg = wait(0, m.port)
msgType = type(msg)
Print "we got it!!"
If msgType = "roSGScreenEvent"Then
if msg.isScreenClosed() then return
end if
end while
end sub