Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Force kill of screen from stack

If was mentioned that there was a way force the removal of a screen from the stack. Apparently it hasn't made it into the documentation yet. Can someone from Roku let me know what the syntax is?
0 Kudos
2 Replies
RokuKevin
Level 7

Re: Force kill of screen from stack

To remove a screen from the display stack, you would just call the Close() method on the screen:

Void Close()
Close the screen and delete the associated object. Useful for avoiding screen flicker when the display order of your screens does not resemble a stack.
0 Kudos

Re: Force kill of screen from stack

Exactly what I needed. Thanks Kevin.
0 Kudos