Forum Discussion

Uzair_Abdullah's avatar
Uzair_Abdullah
Streaming Star
2 years ago

How to refresh or update current scene

A generic question, I am creating an app with only one scene. It takes in some information through a series of dialogues and stores it. But the problem is that the new information doesn't show up immediately. I have to close and restart the app to see the information updated. This isn't good for user experience.
Is there any way to refresh the current scene to get the updated information without closing the app?

4 Replies

  • Do you have some examples of which components you are using and which fields you are updating?  As far as I know the updates should be dynamic eg if you are using a poster node and you update the url, the image will change, if you are using a label component and update the text, the text on the screen will also change.

    For content nodes perhaps the 'update' function will come in handy?

    https://developer.roku.com/en-gb/docs/references/brightscript/interfaces/ifsgnodechildren.md

     

     

    Perhaps just a little more detail or context would be helpful, thanks.

    • Uzair_Abdullah's avatar
      Uzair_Abdullah
      Streaming Star

      As I mentioned earlier before, a generic solution would be great, so that I can use that in any app in the future.
      I have another question after seeing your answer, is it even wise to reload the whole scene, or should a specific component be updated, as you suggested?